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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-dom-content-loaded-event.html

Issue 183893010: DevTools: extract TimelineModel.Record from TimelinePresentationModel.Record. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 9 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 test() 7 function test()
8 { 8 {
9 WebInspector.TimelineModel._doNotAssignEndTime = true;
10 finishCalled = 0; 9 finishCalled = 0;
11 10
12 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(finish); } ); 11 InspectorTest.startTimeline(function() { InspectorTest.reloadPage(finish); } );
13 InspectorTest.waitForRecordType("MarkDOMContent", contentEvent); 12 InspectorTest.waitForRecordType("MarkDOMContent", contentEvent);
14 13
15 function contentEvent() 14 function contentEvent()
16 { 15 {
17 InspectorTest.stopTimeline(finish); 16 InspectorTest.stopTimeline(finish);
18 } 17 }
19 18
20 function finish() 19 function finish()
21 { 20 {
22 if (++finishCalled < 2) 21 if (++finishCalled < 2)
23 return; 22 return;
24 InspectorTest.printTimelineRecords("MarkDOMContent"); 23 InspectorTest.printTimelineRecords("MarkDOMContent");
25 InspectorTest.completeTest(); 24 InspectorTest.completeTest();
26 } 25 }
27 } 26 }
28 27
29 </script> 28 </script>
30 </head> 29 </head>
31 30
32 <body onload="runTest()"> 31 <body onload="runTest()">
33 <p> 32 <p>
34 Tests the DOM content loaded event. 33 Tests the DOM content loaded event.
35 </p> 34 </p>
36 35
37 </body> 36 </body>
38 </html> 37 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/timeline/timeline-compatibility.html ('k') | LayoutTests/inspector/timeline/timeline-filtering.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698