cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Sorokin (JIRA)" <>
Subject [jira] [Created] (CB-8808) Battery.spec.3.2 fails on windows phone 8.1
Date Tue, 07 Apr 2015 14:40:12 GMT
Alexander Sorokin created CB-8808:

             Summary: Battery.spec.3.2 fails on windows phone 8.1
                 Key: CB-8808
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Battery Status, Windows
            Reporter: Alexander Sorokin

This failure is happening because the tests assume that battery status wouldn't change between
mocks, when event listener is added, but it actually changes back to 100% on windows phone

    level : 5,
    isPlugged : false

window.addEventListener("batterylow", onEvent, false);

    level: 20,
    isPlugged: false

Event listener should be added before first mock so that windows wouldn't have the time to
change the battery status in between mocks.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message