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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-time.html

Issue 477153005: DevTools: adopt existing Timeline tests for tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 simpleConsoleTime() 7 function simpleConsoleTime()
8 { 8 {
9 console.time("a"); 9 console.time("a");
10 console.timeEnd("a"); 10 console.timeEnd("a");
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 function testConsoleTimeWithoutConsoleTimeEnd(next) 71 function testConsoleTimeWithoutConsoleTimeEnd(next)
72 { 72 {
73 performActions("consoleTimeWithoutConsoleTimeEnd()", next); 73 performActions("consoleTimeWithoutConsoleTimeEnd()", next);
74 } 74 }
75 ]); 75 ]);
76 76
77 function performActions(actions, next) 77 function performActions(actions, next)
78 { 78 {
79 function callback() 79 function callback()
80 { 80 {
81 function printRecord(record)
82 {
83 var title = WebInspector.TracingTimelineUIUtils.eventTitle(recor d.traceEvent(), InspectorTest.timelineModel());
84 InspectorTest.addResult(" " + title);
85 }
81 var rootRecord = InspectorTest.timelinePresentationModel().rootRecor d(); 86 var rootRecord = InspectorTest.timelinePresentationModel().rootRecor d();
82 InspectorTest.dumpPresentationRecord(rootRecord, undefined, undefine d, ["FunctionCall", "ConsoleTime", "TimeStamp"]); 87 InspectorTest.dumpPresentationRecord(rootRecord, undefined, undefine d, ["FunctionCall", "ConsoleTime", "TimeStamp"]);
88 InspectorTest.addResult("Marker records:");
89 InspectorTest.printTimestampRecords(null, printRecord);
83 InspectorTest.timelinePresentationModel().reset(); 90 InspectorTest.timelinePresentationModel().reset();
84 next(); 91 next();
85 } 92 }
86 InspectorTest.evaluateWithTimeline(actions, callback) 93 InspectorTest.evaluateWithTimeline(actions, callback)
87 } 94 }
88 } 95 }
89 96
90 </script> 97 </script>
91 </head> 98 </head>
92 99
93 <body onload="runTest()"> 100 <body onload="runTest()">
94 <p>Test nesting of time/timeEnd records on Timeline</p> 101 <p>Test nesting of time/timeEnd records on Timeline</p>
95 102
96 </body> 103 </body>
97 </html> 104 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698