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 changeStylesAndDisplay(callback) | 7 function changeStylesAndDisplay(callback) |
8 { | 8 { |
9 requestAnimationFrame(function() { | 9 requestAnimationFrame(function() { |
10 document.getElementById("testElementOne").className = "red"; | 10 document.getElementById("testElementOne").className = "red"; |
11 document.getElementById("testElementTwo").className = "red"; | 11 document.getElementById("testElementTwo").className = "red"; |
12 var forceStyleRecalc = document.body.offsetTop; | 12 var forceStyleRecalc = document.body.offsetTop; |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.layoutAndPaintAsyncThen(callback); | 14 testRunner.layoutAndPaintAsyncThen(callback); |
15 }); | 15 }); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 .testHolder > .green .dummy { } | 113 .testHolder > .green .dummy { } |
114 .testHolder > .blue .dummy { } | 114 .testHolder > .blue .dummy { } |
115 .testHolder > .snow .dummy { } | 115 .testHolder > .snow .dummy { } |
116 </style> | 116 </style> |
117 </head> | 117 </head> |
118 <body onload="runTest()"> | 118 <body onload="runTest()"> |
119 <p>Tests the Timeline API instrumentation of style recalc events with invalidati
ons.</p> | 119 <p>Tests the Timeline API instrumentation of style recalc events with invalidati
ons.</p> |
120 <div class="testHolder"> | 120 <div class="testHolder"> |
121 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t
estElementThree">PASS</div> | 121 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t
estElementThree">PASS</div> |
122 </div> | 122 </div> |
123 <iframe src="resources/timeline-iframe-with-style.html" style="position: absolut
e; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> | 123 <iframe src="../resources/timeline-iframe-with-style.html" style="position: abso
lute; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe
> |
124 </body> | 124 </body> |
125 </html> | 125 </html> |
OLD | NEW |