Index: third_party/WebKit/LayoutTests/battery-status/no-gc-with-eventlisteners.html |
diff --git a/third_party/WebKit/LayoutTests/battery-status/no-gc-with-eventlisteners.html b/third_party/WebKit/LayoutTests/battery-status/no-gc-with-eventlisteners.html |
index 21649370bf86f8833528ce64d142e666216c6dfe..cbd4ad1209e978cec490b9b14a6f181e6e3383e6 100644 |
--- a/third_party/WebKit/LayoutTests/battery-status/no-gc-with-eventlisteners.html |
+++ b/third_party/WebKit/LayoutTests/battery-status/no-gc-with-eventlisteners.html |
@@ -7,8 +7,6 @@ |
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 +19,7 @@ |
chargingTime: chargingTime, |
dischargingTime: dischargingTime, |
level: level }; |
- window.internals.updateBatteryStatus(charging, chargingTime, dischargingTime, level); |
+ testRunner.didChangeBatteryStatus(charging, chargingTime, dischargingTime, level); |
} |
// compare obtained battery values with the mock values |
@@ -47,7 +45,7 @@ |
setTimeout(fireLevelChange, 0); |
}); |
-setAndFireMockBatteryInfo(false, 10, 20, 0.5); |
+setAndFireMockBatteryInfo(false, 10, 20, 0.5); |
</script> |
</body> |
</html> |