| 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"; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 InspectorTest.assertTrue(secondPaint === undefined, "There should be no
additional paint records."); | 39 InspectorTest.assertTrue(secondPaint === undefined, "There should be no
additional paint records."); |
| 40 InspectorTest.completeTest(); | 40 InspectorTest.completeTest(); |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 </script> | 43 </script> |
| 44 <style> | 44 <style> |
| 45 .testHolder > .red { background-color: red; } | 45 .testHolder > .red { background-color: red; } |
| 46 .testHolder > .green { background-color: green; } | 46 .testHolder > .green { background-color: green; } |
| 47 .testHolder > .blue { background-color: blue; } | 47 .testHolder > .blue { background-color: blue; } |
| 48 .testHolder > .snow { background-color: snow; } | 48 .testHolder > .snow { background-color: snow; } |
| 49 .testHolder > .red .dummy { } |
| 50 .testHolder > .green .dummy { } |
| 51 .testHolder > .blue .dummy { } |
| 52 .testHolder > .snow .dummy { } |
| 49 </style> | 53 </style> |
| 50 </head> | 54 </head> |
| 51 <body onload="runTest()"> | 55 <body onload="runTest()"> |
| 52 <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> |
| 53 <div class="testHolder"> | 57 <div class="testHolder"> |
| 54 <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> |
| 55 </div> | 59 </div> |
| 56 </body> | 60 </body> |
| 57 </html> | 61 </html> |
| OLD | NEW |