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

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: re entrancy fix Created 4 years, 7 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..7625322e34ff857986664cb10bfee8db98feef93 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 properties.
+ 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