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 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 </script> | 50 </script> |
51 </head> | 51 </head> |
52 | 52 |
53 <body onload="runTest()"> | 53 <body onload="runTest()"> |
54 <p> | 54 <p> |
55 Tests the load event. | 55 Tests the load event. |
56 </p> | 56 </p> |
57 | 57 |
58 </body> | 58 </body> |
59 </html> | 59 </html> |
OLD | NEW |