| 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 29 matching lines...) Expand all Loading... |
| 40 // Skip things that are assumed to be constants. | 40 // Skip things that are assumed to be constants. |
| 41 if (path[path.length - 1].toUpperCase() == path[path.length - 1]) | 41 if (path[path.length - 1].toUpperCase() == path[path.length - 1]) |
| 42 return; | 42 return; |
| 43 | 43 |
| 44 // Various special cases for legacy reasons. Please do not add entries to th
is list. | 44 // Various special cases for legacy reasons. Please do not add entries to th
is list. |
| 45 var propertyPath = path.join('.'); | 45 var propertyPath = path.join('.'); |
| 46 | 46 |
| 47 // Connection type depends on the host, skip. | 47 // Connection type depends on the host, skip. |
| 48 if (propertyPath == 'navigator.connection.type') | 48 if (propertyPath == 'navigator.connection.type') |
| 49 return; | 49 return; |
| 50 if (propertyPath == 'navigator.connection.downlinkMax') |
| 51 return; |
| 50 | 52 |
| 51 switch (propertyPath) { | 53 switch (propertyPath) { |
| 52 case "location.href": | 54 case "location.href": |
| 53 expected = "'about:blank'"; | 55 expected = "'about:blank'"; |
| 54 break; | 56 break; |
| 55 case "location.origin": | 57 case "location.origin": |
| 56 expected = "'null'"; | 58 expected = "'null'"; |
| 57 break; | 59 break; |
| 58 case "location.pathname": | 60 case "location.pathname": |
| 59 expected = "'blank'"; | 61 expected = "'blank'"; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 emitExpectedResult(path, "0"); | 112 emitExpectedResult(path, "0"); |
| 111 } else if (type == "boolean") { | 113 } else if (type == "boolean") { |
| 112 expected = "false"; | 114 expected = "false"; |
| 113 if (path == "closed" && windowHasBeenGCed ) | 115 if (path == "closed" && windowHasBeenGCed ) |
| 114 expected = "true"; | 116 expected = "true"; |
| 115 emitExpectedResult(path, expected); | 117 emitExpectedResult(path, expected); |
| 116 } | 118 } |
| 117 path.pop(); | 119 path.pop(); |
| 118 } | 120 } |
| 119 } | 121 } |
| OLD | NEW |