OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
5 <script src="../../http/tests/inspector/timeline-test.js"></script> | 5 <script src="../../../http/tests/inspector/timeline-test.js"></script> |
6 <script> | 6 <script> |
7 function display(callback) | 7 function display(callback) |
8 { | 8 { |
9 requestAnimationFrame(function() { | 9 requestAnimationFrame(function() { |
10 document.body.style.backgroundColor = "blue"; | 10 document.body.style.backgroundColor = "blue"; |
11 document.getElementById("testElement").style.width = "100px"; | 11 document.getElementById("testElement").style.width = "100px"; |
12 var forceLayout = document.body.offsetTop; | 12 var forceLayout = document.body.offsetTop; |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.layoutAndPaintAsyncThen(callback); | 14 testRunner.layoutAndPaintAsyncThen(callback); |
15 }); | 15 }); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 next(); | 57 next(); |
58 }); | 58 }); |
59 } | 59 } |
60 ]); | 60 ]); |
61 } | 61 } |
62 </script> | 62 </script> |
63 </head> | 63 </head> |
64 <body onload="runTest()"> | 64 <body onload="runTest()"> |
65 <p>Tests the Timeline API instrumentation of paint events with layout invalidati
ons.</p> | 65 <p>Tests the Timeline API instrumentation of paint events with layout invalidati
ons.</p> |
66 <div id="testElement">PASS</div> | 66 <div id="testElement">PASS</div> |
67 <iframe src="resources/timeline-iframe-paint.html" style="position: absolute; le
ft: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> | 67 <iframe src="../resources/timeline-iframe-paint.html" style="position: absolute;
left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> |
68 </body> | 68 </body> |
69 </html> | 69 </html> |
OLD | NEW |