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

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

Issue 356833006: Remove navigator.connection.type from some window tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 6 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 ae730480f6954f1db8c234d91c71e3ec3df22fcf..7067772fa8badc36a8689e29bdd03555bdf34ed0 100644
--- a/LayoutTests/fast/dom/Window/resources/window-property-collector.js
+++ b/LayoutTests/fast/dom/Window/resources/window-property-collector.js
@@ -43,6 +43,11 @@ function emitExpectedResult(path, expected)
// Various special cases for legacy reasons. Please do not add entries to this list.
var propertyPath = path.join('.');
+
+ // Connection type depends on the host, skip.
+ if (propertyPath == 'navigator.connection.type')
+ return;
+
switch (propertyPath) {
case "location.href":
expected = "'about:blank'";
@@ -65,7 +70,6 @@ function emitExpectedResult(path, expected)
case "navigator.product":
case "navigator.productSub":
case "navigator.vendor":
- case "navigator.connection.type":
expected = "window." + propertyPath;
break;
case "screen.orientation":

Powered by Google App Engine
This is Rietveld 408576698