Index: third_party/WebKit/LayoutTests/battery-status/multiple-promises-after-resolve.html |
diff --git a/third_party/WebKit/LayoutTests/battery-status/multiple-promises-after-resolve.html b/third_party/WebKit/LayoutTests/battery-status/multiple-promises-after-resolve.html |
index 2e926fd58480266c746b3bda46ae801b1be80352..76edf321fae30288871e190e51d8d1ae6634374e 100644 |
--- a/third_party/WebKit/LayoutTests/battery-status/multiple-promises-after-resolve.html |
+++ b/third_party/WebKit/LayoutTests/battery-status/multiple-promises-after-resolve.html |
@@ -7,6 +7,8 @@ description("Test battery status API with multiple promises after resolve."); |
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(); |
@@ -20,7 +22,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 |