| 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() | 6 function display() |
| 7 { | 7 { |
| 8 var callback; | 8 var callback; |
| 9 var promise = new Promise((fulfill) => callback = fulfill); | 9 var promise = new Promise((fulfill) => callback = fulfill); |
| 10 if (window.testRunner) | 10 if (window.testRunner) |
| 11 testRunner.setCanOpenWindows(true); | 11 testRunner.setCanOpenWindows(true); |
| 12 var popup = window.open("data:text/html,<b>Hello, world</b>"); | 12 var popup = window.open("resources/hello.html"); |
| 13 popup.onload = function() | 13 popup.onload = function() |
| 14 { | 14 { |
| 15 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner,
callback)); | 15 requestAnimationFrame(testRunner.capturePixelsAsyncThen.bind(testRunner,
callback)); |
| 16 } | 16 } |
| 17 return promise; | 17 return promise; |
| 18 } | 18 } |
| 19 | 19 |
| 20 function test() | 20 function test() |
| 21 { | 21 { |
| 22 UI.panels.timeline._disableCaptureJSProfileSetting.set(true); | 22 UI.panels.timeline._disableCaptureJSProfileSetting.set(true); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 53 </script> | 53 </script> |
| 54 </head> | 54 </head> |
| 55 | 55 |
| 56 <body onload="runTest()"> | 56 <body onload="runTest()"> |
| 57 <p> | 57 <p> |
| 58 Tests the load event. | 58 Tests the load event. |
| 59 </p> | 59 </p> |
| 60 | 60 |
| 61 </body> | 61 </body> |
| 62 </html> | 62 </html> |
| OLD | NEW |