You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Alexander Sorokin (JIRA)" <ji...@apache.org> on 2017/04/06 15:33:42 UTC
[jira] [Closed] (CB-12639) Battery Status plugin: tests should use
console.error() instead of non-existing console.err()
[ https://issues.apache.org/jira/browse/CB-12639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Sorokin closed CB-12639.
----------------------------------
Resolution: Fixed
> 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