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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 InspectorTest.assertEquals(secondInvalidations[0].type, WebInspector
.TracingTimelineModel.RecordType.StyleRecalcInvalidationTracking); | 73 InspectorTest.assertEquals(secondInvalidations[0].type, WebInspector
.TracingTimelineModel.RecordType.StyleRecalcInvalidationTracking); |
74 InspectorTest.assertEquals(secondInvalidations[0].nodeName, "DIV"); | 74 InspectorTest.assertEquals(secondInvalidations[0].nodeName, "DIV"); |
75 InspectorTest.assertEquals(secondInvalidations[0].reason, "StyleShee
tChange"); | 75 InspectorTest.assertEquals(secondInvalidations[0].reason, "StyleShee
tChange"); |
76 next(); | 76 next(); |
77 } | 77 } |
78 ]); | 78 ]); |
79 } | 79 } |
80 </script> | 80 </script> |
81 </head> | 81 </head> |
82 <body onload="runTest()"> | 82 <body onload="runTest()"> |
83 <p>Tests the Timeline API instrumentation of style recalc invalidations.</p> | 83 <p>Tests the Timeline API instrumentation of paint events with style recalc inva
lidations.</p> |
84 <div id="testElement">PASS</div> | 84 <div id="testElement">PASS</div> |
85 <iframe src="resources/timeline-iframe-paint.html" style="position: absolute; le
ft: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> | 85 <iframe src="resources/timeline-iframe-paint.html" style="position: absolute; le
ft: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> |
86 </body> | 86 </body> |
87 </html> | 87 </html> |
OLD | NEW |