Index: third_party/WebKit/LayoutTests/battery-status/multiple-windows.html |
diff --git a/third_party/WebKit/LayoutTests/battery-status/multiple-windows.html b/third_party/WebKit/LayoutTests/battery-status/multiple-windows.html |
index dbd4c66c73d9d4bf22ac908bf5fca9f537bfb7ff..46a3e66cf1a3386b7e0942c191a32efa05262bd0 100644 |
--- a/third_party/WebKit/LayoutTests/battery-status/multiple-windows.html |
+++ b/third_party/WebKit/LayoutTests/battery-status/multiple-windows.html |
@@ -7,6 +7,8 @@ description("Test battery status API with multiple windows."); |
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(); |
@@ -21,7 +23,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); |
} |
// compare obtained battery values with the mock values |