| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/timeline-test.js"></script> | 4 <script src="../../http/tests/inspector/timeline-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function display(callback) | 6 function display(callback) |
| 7 { | 7 { |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.setCanOpenWindows(true); | 9 testRunner.setCanOpenWindows(true); |
| 10 var popup = window.open("data:text/html,<b>Hello, world</b>"); | 10 var popup = window.open("data:text/html,<b>Hello, world</b>"); |
| 11 popup.onload = function() | 11 popup.onload = function() |
| 12 { | 12 { |
| 13 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner,
callback)); | 13 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner,
callback)); |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 | 16 |
| 17 function test() | 17 function test() |
| 18 { | 18 { |
| 19 WebInspector.panels.timeline._captureJSProfileSetting.set(false); |
| 19 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(pageReload
ed); }); | 20 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(pageReload
ed); }); |
| 20 | 21 |
| 21 function pageReloaded() | 22 function pageReloaded() |
| 22 { | 23 { |
| 23 InspectorTest.invokePageFunctionAsync("display", displayDone); | 24 InspectorTest.invokePageFunctionAsync("display", displayDone); |
| 24 } | 25 } |
| 25 | 26 |
| 26 function displayDone() | 27 function displayDone() |
| 27 { | 28 { |
| 28 InspectorTest.stopTimeline(InspectorTest.safeWrap(finish)) | 29 InspectorTest.stopTimeline(InspectorTest.safeWrap(finish)) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 49 </script> | 50 </script> |
| 50 </head> | 51 </head> |
| 51 | 52 |
| 52 <body onload="runTest()"> | 53 <body onload="runTest()"> |
| 53 <p> | 54 <p> |
| 54 Tests the load event. | 55 Tests the load event. |
| 55 </p> | 56 </p> |
| 56 | 57 |
| 57 </body> | 58 </body> |
| 58 </html> | 59 </html> |
| OLD | NEW |