Index: LayoutTests/batterystatus/script-tests/window-property.js |
diff --git a/LayoutTests/batterystatus/script-tests/window-property.js b/LayoutTests/batterystatus/script-tests/window-property.js |
deleted file mode 100644 |
index fefe376bc807c8a1d82c463bf3ff68362fb67521..0000000000000000000000000000000000000000 |
--- a/LayoutTests/batterystatus/script-tests/window-property.js |
+++ /dev/null |
@@ -1,23 +0,0 @@ |
-description('Tests that the window.navigator.battery properties are present.'); |
- |
-function hasOnBatteryProperty() |
-{ |
- var result = 0; |
- for (var property in navigator.webkitBattery) { |
- if (property == 'onchargingchange' || |
- property == 'onchargingtimechange' || |
- property == 'ondischargingtimechange' || |
- property == 'onlevelchange') |
- result += 1; |
- } |
- if (result == 4) |
- return true; |
- return false; |
-} |
- |
-shouldBeTrue("typeof navigator.webkitBattery == 'object'"); |
-shouldBeTrue("hasOnBatteryProperty()"); |
-shouldBeTrue("navigator.webkitBattery.hasOwnProperty('onchargingchange')"); |
-shouldBeTrue("navigator.webkitBattery.hasOwnProperty('onchargingtimechange')"); |
-shouldBeTrue("navigator.webkitBattery.hasOwnProperty('ondischargingtimechange')"); |
-shouldBeTrue("navigator.webkitBattery.hasOwnProperty('onlevelchange')"); |