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

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

Issue 262723002: Implement navigator.hardwareConcurrency (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 expected = "'null'"; 51 expected = "'null'";
52 break; 52 break;
53 case "location.pathname": 53 case "location.pathname":
54 expected = "'blank'"; 54 expected = "'blank'";
55 break; 55 break;
56 case "location.protocol": 56 case "location.protocol":
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.cores":
61 case "navigator.language": 62 case "navigator.language":
62 case "navigator.onLine": 63 case "navigator.onLine":
63 case "navigator.platform": 64 case "navigator.platform":
64 case "navigator.product": 65 case "navigator.product":
65 case "navigator.productSub": 66 case "navigator.productSub":
66 case "navigator.vendor": 67 case "navigator.vendor":
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'";
(...skipping 24 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