| 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 cbd4ad1209e978cec490b9b14a6f181e6e3383e6..21649370bf86f8833528ce64d142e666216c6dfe 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,6 +7,8 @@ description("Test no garbage collection of battery manager object when listeners
|
|
|
| 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);
|
| }
|
|
|
| // compare obtained battery values with the mock values
|
| @@ -45,7 +47,7 @@ navigator.getBattery().then(function(battery) {
|
| setTimeout(fireLevelChange, 0);
|
| });
|
|
|
| -setAndFireMockBatteryInfo(false, 10, 20, 0.5);
|
| +setAndFireMockBatteryInfo(false, 10, 20, 0.5);
|
| </script>
|
| </body>
|
| </html>
|
|
|