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 var testElements = document.body.getElementsByClassName("testElement"); | 10 var testElements = document.body.getElementsByClassName("testElement"); |
11 for (var i = 0; i < testElements.length; i++) { | 11 for (var i = 0; i < testElements.length; i++) { |
12 testElements[i].style.color = "red"; | 12 testElements[i].style.color = "red"; |
13 testElements[i].style.backgroundColor = "blue"; | 13 testElements[i].style.backgroundColor = "blue"; |
14 } | 14 } |
15 if (window.testRunner) | 15 if (window.testRunner) |
(...skipping 30 matching lines...) Expand all Loading... |
46 } | 46 } |
47 } | 47 } |
48 </script> | 48 </script> |
49 </head> | 49 </head> |
50 <body onload="runTest()"> | 50 <body onload="runTest()"> |
51 <p>Tests grouped invalidations on the timeline.</p> | 51 <p>Tests grouped invalidations on the timeline.</p> |
52 <div class="testElement">P</div><div class="testElement">A</div> | 52 <div class="testElement">P</div><div class="testElement">A</div> |
53 <div class="testElement">S</div><div class="testElement">S</div> | 53 <div class="testElement">S</div><div class="testElement">S</div> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |