| 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"; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 InspectorTest.assertEquals(secondInvalidations[2].type, WebInspector
.TracingTimelineModel.RecordType.LayoutInvalidationTracking); | 80 InspectorTest.assertEquals(secondInvalidations[2].type, WebInspector
.TracingTimelineModel.RecordType.LayoutInvalidationTracking); |
| 81 InspectorTest.assertEquals(secondInvalidations[2].nodeName, "#docume
nt"); | 81 InspectorTest.assertEquals(secondInvalidations[2].nodeName, "#docume
nt"); |
| 82 InspectorTest.assertGreaterOrEqual(secondInvalidations[2].stackTrace
.length, 1); | 82 InspectorTest.assertGreaterOrEqual(secondInvalidations[2].stackTrace
.length, 1); |
| 83 next(); | 83 next(); |
| 84 } | 84 } |
| 85 ]); | 85 ]); |
| 86 } | 86 } |
| 87 </script> | 87 </script> |
| 88 </head> | 88 </head> |
| 89 <body onload="runTest()"> | 89 <body onload="runTest()"> |
| 90 <p>Tests the Timeline API instrumentation of layout invalidations.</p> | 90 <p>Tests the Timeline API instrumentation of paint events with layout invalidati
ons.</p> |
| 91 <div id="testElement">PASS</div> | 91 <div id="testElement">PASS</div> |
| 92 <iframe src="resources/timeline-iframe-paint.html" style="position: absolute; le
ft: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> | 92 <iframe src="resources/timeline-iframe-paint.html" style="position: absolute; le
ft: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> |
| 93 </body> | 93 </body> |
| 94 </html> | 94 </html> |
| OLD | NEW |