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

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

Powered by Google App Engine
This is Rietveld 408576698