incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject git commit: Rolling back battery test changes as we are not implementing the new spec at this time
Date Wed, 25 Jan 2012 20:15:44 GMT
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 <simon.macdonald@gmail.com>
Authored: Wed Jan 25 15:15:30 2012 -0500
Committer: macdonst <simon.macdonald@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
+};


Mime
View raw message