| OLD | NEW |
| 1 function collectProperties(windowHasBeenGCed) | 1 function collectProperties(windowHasBeenGCed) |
| 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, windowHasBeenGCed, []); | 5 collectPropertiesHelper(window, windowHasBeenGCed, []); |
| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 case "navigator.onLine": | 68 case "navigator.onLine": |
| 69 case "navigator.platform": | 69 case "navigator.platform": |
| 70 case "navigator.product": | 70 case "navigator.product": |
| 71 case "navigator.productSub": | 71 case "navigator.productSub": |
| 72 case "navigator.vendor": | 72 case "navigator.vendor": |
| 73 expected = "window." + propertyPath; | 73 expected = "window." + propertyPath; |
| 74 break; | 74 break; |
| 75 case "screen.orientation": | 75 case "screen.orientation": |
| 76 expected = "'portrait-primary'"; | 76 expected = "'portrait-primary'"; |
| 77 break; | 77 break; |
| 78 case "history.options.scrollRestoration": | 78 case "history.scrollRestoration": |
| 79 expected = "'auto'"; | 79 expected = "'auto'"; |
| 80 break; | 80 break; |
| 81 } | 81 } |
| 82 | 82 |
| 83 insertExpectedResult(path, expected); | 83 insertExpectedResult(path, expected); |
| 84 } | 84 } |
| 85 | 85 |
| 86 function collectPropertiesHelper(object, windowHasBeenGCed, path) | 86 function collectPropertiesHelper(object, windowHasBeenGCed, path) |
| 87 { | 87 { |
| 88 if (path.length > 20) | 88 if (path.length > 20) |
| (...skipping 21 matching lines...) Expand all Loading... |
| 110 emitExpectedResult(path, "0"); | 110 emitExpectedResult(path, "0"); |
| 111 } else if (type == "boolean") { | 111 } else if (type == "boolean") { |
| 112 expected = "false"; | 112 expected = "false"; |
| 113 if (path == "closed" && windowHasBeenGCed ) | 113 if (path == "closed" && windowHasBeenGCed ) |
| 114 expected = "true"; | 114 expected = "true"; |
| 115 emitExpectedResult(path, expected); | 115 emitExpectedResult(path, expected); |
| 116 } | 116 } |
| 117 path.pop(); | 117 path.pop(); |
| 118 } | 118 } |
| 119 } | 119 } |
| OLD | NEW |