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

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

Issue 1892083002: Generic Sensor API : Ambient Light Sensor API. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/fast/dom/Window/resources/window-property-collector.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js b/third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js
index 5cbd31604727f7d460aacdc363de3862d429c387..ca90d3d44e903dde9861d2cd08c418b4970fc7e4 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js
@@ -50,6 +50,10 @@ function emitExpectedResult(path, expected)
if (propertyPath == 'navigator.connection.downlinkMax')
return;
+ // Skip some lightSensor proeperties.
+ if (propertyPath == 'navigator.lightSensor.reading.illuminance' || propertyPath == 'navigator.lightSensor.state')
+ return;
+
switch (propertyPath) {
case "location.href":
expected = "'about:blank'";

Powered by Google App Engine
This is Rietveld 408576698