You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2012/01/25 21:15:44 UTC
git commit: Rolling back battery test changes as we are not
implementing the new spec at this time
Updated Branches:
refs/heads/master 26d7797e1 -> e58ebce15
Rolling back battery test changes as we are not implementing the new spec at this time
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/e58ebce1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/e58ebce1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/e58ebce1
Branch: refs/heads/master
Commit: e58ebce153ce5dcc5dfec167e95997f020825545
Parents: 26d7797
Author: macdonst <si...@gmail.com>
Authored: Wed Jan 25 15:15:30 2012 -0500
Committer: macdonst <si...@gmail.com>
Committed: Wed Jan 25 15:15:30 2012 -0500
----------------------------------------------------------------------
autotest/tests/battery.tests.js | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/e58ebce1/autotest/tests/battery.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/battery.tests.js b/autotest/tests/battery.tests.js
index bce3079..faf14e1 100644
--- a/autotest/tests/battery.tests.js
+++ b/autotest/tests/battery.tests.js
@@ -4,15 +4,4 @@ Tests.prototype.BatteryTests = function() {
expect(1);
ok(navigator.battery != null, "navigator.battery should not be null.");
});
- /**
- * Tests add for Battery Status API spec
- * http://www.w3.org/TR/2011/WD-battery-status-20111129/
- */
- test("should have properties", function() {
- expect(4);
- ok(typeof navigator.battery.charging != 'undefined' && navigator.battery.charging != null, "navigator.battery.charging should be a boolean value.");
- ok(typeof navigator.battery.chargingTime != 'undefined' && navigator.battery.chargingTime != null, "navigator.battery.chargingTime should be a double value.");
- ok(typeof navigator.battery.level != 'undefined' && navigator.battery.level != null, "navigator.battery.level should be a double value.");
- ok(typeof navigator.battery.dischargingTime != 'undefined' && navigator.battery.dischargingTime != null, "navigator.battery.dischargingTime should be a double value.");
- });
-};
\ No newline at end of file
+};