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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-and-multiple-style-invalidations.html

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: made layers panel closeable. Created 4 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
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 multipleStyleRecalcsAndDisplay() 7 function multipleStyleRecalcsAndDisplay()
8 { 8 {
9 document.getElementById("testElementOne").className = "red"; 9 document.getElementById("testElementOne").className = "red";
10 var forceStyleRecalc1 = document.body.offsetTop; 10 var forceStyleRecalc1 = document.body.offsetTop;
11 document.getElementById("testElementOne").className = "snow"; 11 document.getElementById("testElementOne").className = "snow";
12 var forceStyleRecalc2 = document.body.offsetTop; 12 var forceStyleRecalc2 = document.body.offsetTop;
13 return waitForFrame(); 13 return waitForFrame();
14 } 14 }
15 15
16 16
17 function test() 17 function test()
18 { 18 {
19 var currentPanel = WebInspector.inspectorView.currentPanel();
20 InspectorTest.assertEquals(currentPanel._panelName, "timeline", "Current pan el should be the timeline.");
21 Runtime.experiments.enableForTest("timelineInvalidationTracking"); 19 Runtime.experiments.enableForTest("timelineInvalidationTracking");
22 InspectorTest.invokeAsyncWithTimeline("multipleStyleRecalcsAndDisplay", test MultipleStyleRecalcs); 20 InspectorTest.invokeAsyncWithTimeline("multipleStyleRecalcsAndDisplay", test MultipleStyleRecalcs);
23 21
24 function testMultipleStyleRecalcs() 22 function testMultipleStyleRecalcs()
25 { 23 {
26 var firstRecalc = InspectorTest.findTimelineRecord(WebInspector.Timeline Model.RecordType.UpdateLayoutTree, 0); 24 var firstRecalc = InspectorTest.findTimelineRecord(WebInspector.Timeline Model.RecordType.UpdateLayoutTree, 0);
27 InspectorTest.addArray(firstRecalc._event.invalidationTrackingEvents, In spectorTest.InvalidationFormatters, "", "first style recalc"); 25 InspectorTest.addArray(firstRecalc._event.invalidationTrackingEvents, In spectorTest.InvalidationFormatters, "", "first style recalc");
28 var secondRecalc = InspectorTest.findTimelineRecord(WebInspector.Timelin eModel.RecordType.UpdateLayoutTree, 1); 26 var secondRecalc = InspectorTest.findTimelineRecord(WebInspector.Timelin eModel.RecordType.UpdateLayoutTree, 1);
29 InspectorTest.addArray(secondRecalc._event.invalidationTrackingEvents, I nspectorTest.InvalidationFormatters, "", "second style recalc"); 27 InspectorTest.addArray(secondRecalc._event.invalidationTrackingEvents, I nspectorTest.InvalidationFormatters, "", "second style recalc");
30 var firstPaint = InspectorTest.findTimelineRecord(WebInspector.TimelineM odel.RecordType.Paint, 0); 28 var firstPaint = InspectorTest.findTimelineRecord(WebInspector.TimelineM odel.RecordType.Paint, 0);
(...skipping 18 matching lines...) Expand all
49 .testHolder > .snow .dummy { } 47 .testHolder > .snow .dummy { }
50 </style> 48 </style>
51 </head> 49 </head>
52 <body onload="runTest()"> 50 <body onload="runTest()">
53 <p>Tests the Timeline API instrumentation of multiple style recalc invalidations and ensures they are all collected on the paint event.</p> 51 <p>Tests the Timeline API instrumentation of multiple style recalc invalidations and ensures they are all collected on the paint event.</p>
54 <div class="testHolder"> 52 <div class="testHolder">
55 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t estElementThree">PASS</div> 53 <div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="t estElementThree">PASS</div>
56 </div> 54 </div>
57 </body> 55 </body>
58 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698