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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-paint.html

Issue 657383002: DevTools: clear session id. follow-up patch after r183608 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script> 5 <script>
6 6
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";
11 if (window.testRunner) 11 if (window.testRunner)
12 testRunner.displayAsyncThen(callback); 12 testRunner.displayAsyncThen(callback);
13 }); 13 });
14 } 14 }
15 15
16 function updateSubframeAndDisplay(callback) 16 function updateSubframeAndDisplay(callback)
17 { 17 {
18 requestAnimationFrame(function() { 18 requestAnimationFrame(function() {
19 frames[0].document.body.children[0].style.backgroundColor = "green"; 19 frames[0].document.body.children[0].style.backgroundColor = "green";
20 if (window.testRunner) 20 if (window.testRunner)
21 testRunner.displayAsyncThen(callback); 21 testRunner.displayAsyncThen(callback);
22 }); 22 });
23 } 23 }
24 24
25 function test() 25 function test()
26 { 26 {
27 InspectorTest.startDumpingProtocolMessages();
yurys 2014/10/17 08:00:54 Revert this?
27 InspectorTest.invokeAsyncWithTimeline("display", step1); 28 InspectorTest.invokeAsyncWithTimeline("display", step1);
28 29
29 function step1(records) 30 function step1(records)
30 { 31 {
31 var record = InspectorTest.findFirstTimelineRecord(WebInspector.Timeline Model.RecordType.Paint); 32 var record = InspectorTest.findFirstTimelineRecord(WebInspector.Timeline Model.RecordType.Paint);
32 if (record) 33 if (record)
33 InspectorTest.printTimelineRecordProperties(record); 34 InspectorTest.printTimelineRecordProperties(record);
34 else 35 else
35 InspectorTest.addResult("FAIL: no paint record found"); 36 InspectorTest.addResult("FAIL: no paint record found");
36 InspectorTest.invokeAsyncWithTimeline("updateSubframeAndDisplay", step3) ; 37 InspectorTest.invokeAsyncWithTimeline("updateSubframeAndDisplay", step3) ;
(...skipping 24 matching lines...) Expand all
61 </script> 62 </script>
62 </head> 63 </head>
63 64
64 <body onload="runTest()"> 65 <body onload="runTest()">
65 <p> 66 <p>
66 Tests the Timeline API instrumentation of a paint event 67 Tests the Timeline API instrumentation of a paint event
67 </p> 68 </p>
68 <iframe src="resources/timeline-iframe-paint.html" style="position: absolute; le ft: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe> 69 <iframe src="resources/timeline-iframe-paint.html" style="position: absolute; le ft: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe>
69 </body> 70 </body>
70 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698