| OLD | NEW |
| 1 function collectProperties(object, windowHasBeenGCed) | 1 function collectProperties(object, windowHasBeenGCed) |
| 2 { | 2 { |
| 3 collectPropertiesHelper(object, object, windowHasBeenGCed, []); | 3 collectPropertiesHelper(object, object, windowHasBeenGCed, []); |
| 4 | 4 |
| 5 propertiesToVerify.sort(function (a, b) | 5 propertiesToVerify.sort(function (a, b) |
| 6 { | 6 { |
| 7 if (a.property < b.property) | 7 if (a.property < b.property) |
| 8 return -1 | 8 return -1 |
| 9 if (a.property > b.property) | 9 if (a.property > b.property) |
| 10 return 1; | 10 return 1; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 case "navigator.appName": | 67 case "navigator.appName": |
| 68 case "navigator.hardwareConcurrency": | 68 case "navigator.hardwareConcurrency": |
| 69 case "navigator.language": | 69 case "navigator.language": |
| 70 case "navigator.onLine": | 70 case "navigator.onLine": |
| 71 case "navigator.platform": | 71 case "navigator.platform": |
| 72 case "navigator.product": | 72 case "navigator.product": |
| 73 case "navigator.productSub": | 73 case "navigator.productSub": |
| 74 case "navigator.vendor": | 74 case "navigator.vendor": |
| 75 expected = "window." + propertyPath; | 75 expected = "window." + propertyPath; |
| 76 break; | 76 break; |
| 77 case "navigator.mediaSession.playbackState": |
| 78 expected = "'none'"; |
| 79 break; |
| 77 case "screen.orientation.type": | 80 case "screen.orientation.type": |
| 78 expected = "'portrait-primary'"; | 81 expected = "'portrait-primary'"; |
| 79 break; | 82 break; |
| 80 case "history.scrollRestoration": | 83 case "history.scrollRestoration": |
| 81 expected = "'auto'"; | 84 expected = "'auto'"; |
| 82 break; | 85 break; |
| 83 } | 86 } |
| 84 | 87 |
| 85 insertExpectedResult(path, expected); | 88 insertExpectedResult(path, expected); |
| 86 } | 89 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 125 } |
| 123 | 126 |
| 124 function pathExists(object, path) { | 127 function pathExists(object, path) { |
| 125 for (var i = 0; i < path.length; i++) { | 128 for (var i = 0; i < path.length; i++) { |
| 126 if (!object || !(path[i] in object)) | 129 if (!object || !(path[i] in object)) |
| 127 return false; | 130 return false; |
| 128 object = object[path[i]]; | 131 object = object[path[i]]; |
| 129 } | 132 } |
| 130 return true; | 133 return true; |
| 131 } | 134 } |
| OLD | NEW |