You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2014/07/22 20:36:38 UTC

[jira] [Resolved] (CB-4540) Improved battery test

     [ https://issues.apache.org/jira/browse/CB-4540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen resolved CB-4540.
---------------------------------

    Resolution: Not a Problem

Tests have been updated and provide better coverage, as well as clarity.

> Improved battery test
> ---------------------
>
>                 Key: CB-4540
>                 URL: https://issues.apache.org/jira/browse/CB-4540
>             Project: Apache Cordova
>          Issue Type: Test
>          Components: mobile-spec
>    Affects Versions: 2.9.0
>            Reporter: Peter
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>         Attachments: index.html
>
>
> We have been doing some battery tests recently and I found it necessary to re-write the mobile-spec battery test to see better exactly what was happening.
> The current mobile-spec battery test was difficult to use for a number of reasons, including:
> * No indication which listeners are active made it hard to know what to expect
> * No if/else in updateInfo function, so "crit" and "low" values were sometimes not updated
> * No way to clear the displayed info so not always sure when it was updating
> I would like to donate my updated test code (attached)



--
This message was sent by Atlassian JIRA
(v6.2#6252)