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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint/timeline-paint-with-layout-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 display() 7 function display()
8 { 8 {
9 document.body.style.backgroundColor = "blue"; 9 document.body.style.backgroundColor = "blue";
10 document.getElementById("testElement").style.width = "100px"; 10 document.getElementById("testElement").style.width = "100px";
11 var forceLayout = document.body.offsetTop; 11 var forceLayout = document.body.offsetTop;
12 return waitForFrame(); 12 return waitForFrame();
13 } 13 }
14 14
15 function updateSubframeAndDisplay() 15 function updateSubframeAndDisplay()
16 { 16 {
17 frames[0].document.body.children[0].style.width = "200px"; 17 frames[0].document.body.children[0].style.width = "200px";
18 var forceLayout = frames[0].document.body.offsetTop; 18 var forceLayout = frames[0].document.body.offsetTop;
19 return waitForFrame(); 19 return waitForFrame();
20 } 20 }
21 21
22 function test() 22 function test()
23 { 23 {
24 var currentPanel = WebInspector.inspectorView.currentPanel();
25 InspectorTest.assertEquals(currentPanel._panelName, "timeline", "Current pan el should be the timeline.");
26 Runtime.experiments.enableForTest("timelineInvalidationTracking"); 24 Runtime.experiments.enableForTest("timelineInvalidationTracking");
27 25
28 InspectorTest.runTestSuite([ 26 InspectorTest.runTestSuite([
29 function testLocalFrame(next) 27 function testLocalFrame(next)
30 { 28 {
31 InspectorTest.invokeAsyncWithTimeline("display", function() { 29 InspectorTest.invokeAsyncWithTimeline("display", function() {
32 var record = InspectorTest.findFirstTimelineRecord(WebInspector. TimelineModel.RecordType.Paint); 30 var record = InspectorTest.findFirstTimelineRecord(WebInspector. TimelineModel.RecordType.Paint);
33 InspectorTest.addArray(record._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "paint invalidations"); 31 InspectorTest.addArray(record._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "paint invalidations");
34 32
35 next(); 33 next();
(...skipping 18 matching lines...) Expand all
54 ]); 52 ]);
55 } 53 }
56 </script> 54 </script>
57 </head> 55 </head>
58 <body onload="runTest()"> 56 <body onload="runTest()">
59 <p>Tests the Timeline API instrumentation of paint events with layout invalidati ons.</p> 57 <p>Tests the Timeline API instrumentation of paint events with layout invalidati ons.</p>
60 <div id="testElement">PASS</div> 58 <div id="testElement">PASS</div>
61 <iframe src="../resources/timeline-iframe-paint.html" style="position: absolute; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> 59 <iframe src="../resources/timeline-iframe-paint.html" style="position: absolute; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe>
62 </body> 60 </body>
63 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698