Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1836)

Unified Diff: third_party/WebKit/LayoutTests/battery-status/multiple-windows-page-visibility.html

Issue 1538803002: Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Synced. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/battery-status/multiple-windows-page-visibility.html
diff --git a/third_party/WebKit/LayoutTests/battery-status/multiple-windows-page-visibility.html b/third_party/WebKit/LayoutTests/battery-status/multiple-windows-page-visibility.html
index be5cc9337c668b497e7acaec869eb1f32d371ee1..230f148b4d8c8d6ca48c662b0df24f45d403c1f7 100644
--- a/third_party/WebKit/LayoutTests/battery-status/multiple-windows-page-visibility.html
+++ b/third_party/WebKit/LayoutTests/battery-status/multiple-windows-page-visibility.html
@@ -7,6 +7,8 @@ description("Test multiple windows with page visibility.");
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

Powered by Google App Engine
This is Rietveld 408576698