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

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

Issue 291203002: Adds NetInfo v3 Web API to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@netinfo1
Patch Set: Comment typo 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 unified diff | Download patch
OLDNEW
1 function collectProperties() 1 function collectProperties()
2 { 2 {
3 // Collect properties of the top-level window, since touching the properties 3 // Collect properties of the top-level window, since touching the properties
4 // of a DOMWindow affects its internal C++ state. 4 // of a DOMWindow affects its internal C++ state.
5 collectPropertiesHelper(window, []); 5 collectPropertiesHelper(window, []);
6 6
7 propertiesToVerify.sort(function (a, b) 7 propertiesToVerify.sort(function (a, b)
8 { 8 {
9 if (a.property < b.property) 9 if (a.property < b.property)
10 return -1 10 return -1
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 expected = "'about:'"; 57 expected = "'about:'";
58 break; 58 break;
59 case "navigator.appCodeName": 59 case "navigator.appCodeName":
60 case "navigator.appName": 60 case "navigator.appName":
61 case "navigator.language": 61 case "navigator.language":
62 case "navigator.onLine": 62 case "navigator.onLine":
63 case "navigator.platform": 63 case "navigator.platform":
64 case "navigator.product": 64 case "navigator.product":
65 case "navigator.productSub": 65 case "navigator.productSub":
66 case "navigator.vendor": 66 case "navigator.vendor":
67 case "navigator.connection.type":
67 expected = "window." + propertyPath; 68 expected = "window." + propertyPath;
68 break; 69 break;
69 case "screen.orientation": 70 case "screen.orientation":
70 expected = "'portrait-primary'"; 71 expected = "'portrait-primary'";
71 break; 72 break;
72 } 73 }
73 74
74 insertExpectedResult(path, expected); 75 insertExpectedResult(path, expected);
75 } 76 }
76 77
(...skipping 18 matching lines...) Expand all
95 } else if (type == "string") { 96 } else if (type == "string") {
96 emitExpectedResult(path, "''"); 97 emitExpectedResult(path, "''");
97 } else if (type == "number") { 98 } else if (type == "number") {
98 emitExpectedResult(path, "0"); 99 emitExpectedResult(path, "0");
99 } else if (type == "boolean") { 100 } else if (type == "boolean") {
100 emitExpectedResult(path, "false"); 101 emitExpectedResult(path, "false");
101 } 102 }
102 path.pop(); 103 path.pop();
103 } 104 }
104 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698