Index: third_party/WebKit/LayoutTests/battery-status/api-defined.html |
diff --git a/third_party/WebKit/LayoutTests/battery-status/api-defined.html b/third_party/WebKit/LayoutTests/battery-status/api-defined.html |
index ea2a985e5fd7460c0fd4f98b096699499ab4e7ea..3dfb9ae309eb839e17d4f213d2a2c0a9e33e69cf 100644 |
--- a/third_party/WebKit/LayoutTests/battery-status/api-defined.html |
+++ b/third_party/WebKit/LayoutTests/battery-status/api-defined.html |
@@ -7,6 +7,8 @@ description("Test basic API definitions."); |
if (!window.testRunner) |
debug('This test cannot be run without the TestRunner'); |
+if (!window.internals) |
+ debug('This test cannot be run without the window.internals'); |
// Clean-up any unused battery manager objects from previous tests. |
gc(); |
@@ -19,7 +21,7 @@ function setAndFireMockBatteryInfo(charging, chargingTime, dischargingTime, leve |
chargingTime: chargingTime, |
dischargingTime: dischargingTime, |
level: level }; |
- testRunner.didChangeBatteryStatus(charging, chargingTime, dischargingTime, level); |
+ window.internals.updateBatteryStatus(charging, chargingTime, dischargingTime, level); |
} |
var battery; |