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

Unified Diff: LayoutTests/fast/dom/Window/resources/window-property-collector.js

Issue 182613002: Add support to Battery Status API in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add NeedsRebaseline for 4 tests for Mac. Created 6 years, 9 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: LayoutTests/fast/dom/Window/resources/window-property-collector.js
diff --git a/LayoutTests/fast/dom/Window/resources/window-property-collector.js b/LayoutTests/fast/dom/Window/resources/window-property-collector.js
index 42f915549be90be1a19c9f22ede6d51ec8d844e8..a9ba69576415a690c771fc1260cd35b9234c9293 100644
--- a/LayoutTests/fast/dom/Window/resources/window-property-collector.js
+++ b/LayoutTests/fast/dom/Window/resources/window-property-collector.js
@@ -53,6 +53,18 @@ function emitExpectedResult(path, expected)
case "navigator.vendor":
expected = "window." + propertyPath;
break;
+ case "navigator.battery.charging":
+ expected = "true";
+ break;
+ case "navigator.battery.chargingTime":
+ expected = "Infinity";
+ break;
+ case "navigator.battery.dischargingTime":
+ expected = "Infinity";
+ break;
+ case "navigator.battery.level":
+ expected = "1";
+ break;
}
insertExpectedResult(path, expected);

Powered by Google App Engine
This is Rietveld 408576698