cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12639) Battery Status plugin: tests should use console.error() instead of non-existing console.err()
Date Thu, 27 Apr 2017 16:38:04 GMT

    [ https://issues.apache.org/jira/browse/CB-12639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15986972#comment-15986972
] 

ASF subversion and git services commented on CB-12639:
------------------------------------------------------

Commit 86b6be5249873450600feb76415ef2511275dad7 in cordova-plugin-battery-status's branch
refs/heads/1.2.x from [~alsorokin]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-battery-status.git;h=86b6be5 ]

CB-12639 (all) Tests: console.err() -> console.error()


> Battery Status plugin: tests should use console.error() instead of non-existing console.err()
> ---------------------------------------------------------------------------------------------
>
>                 Key: CB-12639
>                 URL: https://issues.apache.org/jira/browse/CB-12639
>             Project: Apache Cordova
>          Issue Type: Test
>          Components: Plugin Battery Status
>    Affects Versions: Master
>            Reporter: Alexander Sorokin
>            Assignee: Alexander Sorokin
>            Priority: Minor
>              Labels: triaged
>
> The following code may lead to an app crash because console.err() doesn't exist:
> {code}
> afterEach(function () {
>     if (!batteryStatusUnsupported) {
>         try {
>             window.removeEventListener("batterycritical", onEvent, false);
>         }
>         catch (e) {
>             console.err('Error removing batterycritical event listener: ' + e);
>         }
>     }
> });
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message