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 multipleStyleRecalcsAndDisplay(callback) | 7 function multipleStyleRecalcsAndDisplay(callback) |
8 { | 8 { |
9 requestAnimationFrame(function() { | 9 requestAnimationFrame(function() { |
10 document.getElementById("testElementOne").className = "red"; | 10 document.getElementById("testElementOne").className = "red"; |
11 var forceStyleRecalc1 = document.body.offsetTop; | 11 var forceStyleRecalc1 = document.body.offsetTop; |
12 document.getElementById("testElementOne").className = "snow"; | 12 document.getElementById("testElementOne").className = "snow"; |
13 var forceStyleRecalc2 = document.body.offsetTop; | 13 var forceStyleRecalc2 = document.body.offsetTop; |
14 if (window.testRunner) | 14 if (window.testRunner) |
15 testRunner.layoutAndPaintAsyncThen(callback); | 15 testRunner.layoutAndPaintAsyncThen(callback); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 .testHolder > .snow .dummy { } | 52 .testHolder > .snow .dummy { } |
53 </style> | 53 </style> |
54 </head> | 54 </head> |
55 <body onload="runTest()"> | 55 <body onload="runTest()"> |
56 <p>Tests the Timeline API instrumentation of multiple style recalc invalidations
and ensures they are all collected on the paint event.</p> | 56 <p>Tests the Timeline API instrumentation of multiple style recalc invalidations
and ensures they are all collected on the paint event.</p> |
57 <div class="testHolder"> | 57 <div class="testHolder"> |
58 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t
estElementThree">PASS</div> | 58 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t
estElementThree">PASS</div> |
59 </div> | 59 </div> |
60 </body> | 60 </body> |
61 </html> | 61 </html> |
OLD | NEW |