| OLD | NEW |
| 1 <p>This test dumps all of the properties that are reachable from the window.perf
ormance object, along with their types.</p> | 1 <p>This test dumps all of the properties that are reachable from the window.perf
ormance object, along with their types.</p> |
| 2 <hr> | 2 <hr> |
| 3 <pre id="pre"></pre> | 3 <pre id="pre"></pre> |
| 4 | 4 |
| 5 <script> | 5 <script> |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
| 8 | 8 |
| 9 var logBuffer = []; | 9 var logBuffer = []; |
| 10 function log(s) | 10 function log(s) |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 array.sort(); | 84 array.sort(); |
| 85 for (var i = 0; i < array.length; i++) { | 85 for (var i = 0; i < array.length; i++) { |
| 86 var property = array[i]; | 86 var property = array[i]; |
| 87 logValue(objectName + "." + property); | 87 logValue(objectName + "." + property); |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 | 90 |
| 91 logValue('window.performance'); | 91 logValue('window.performance'); |
| 92 window.performance.timing = 'timing is not replaceable'; | 92 window.performance.timing = 'timing is not replaceable'; |
| 93 logValue('window.performance.timing'); | 93 logValue('window.performance.timing'); |
| 94 // PerformanceTiming supports a serializer. |
| 95 var jsonizedTiming = JSON.parse(JSON.stringify(window.performance.timing)); |
| 96 logValue('jsonizedTiming'); |
| 94 window.performance.navigation = 'navigation is not replaceable'; | 97 window.performance.navigation = 'navigation is not replaceable'; |
| 95 logValue('window.performance.navigation'); | 98 logValue('window.performance.navigation'); |
| 96 window.performance = 'performance is replaceable'; | 99 window.performance = 'performance is replaceable'; |
| 97 logValue('window.performance'); | 100 logValue('window.performance'); |
| 98 flushLog(); | 101 flushLog(); |
| 99 </script> | 102 </script> |
| OLD | NEW |