| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |