Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: LayoutTests/inspector/tracing/timeline-paint-with-layout-invalidations.html

Issue 653283005: Implement style recalc invalidation tracking in devtools (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix minor typeo: _addInvalidationTrackingEvent Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698