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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-time.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 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 { 71 {
72 performActions("consoleTimeWithoutConsoleTimeEnd()", next); 72 performActions("consoleTimeWithoutConsoleTimeEnd()", next);
73 } 73 }
74 ]); 74 ]);
75 75
76 function performActions(actions, next) 76 function performActions(actions, next)
77 { 77 {
78 function callback() 78 function callback()
79 { 79 {
80 var rootRecord = InspectorTest.timelinePresentationModel().rootRecor d(); 80 var rootRecord = InspectorTest.timelinePresentationModel().rootRecor d();
81 InspectorTest.dumpTimelineRecord(rootRecord, undefined, undefined, [ "FunctionCall", "ConsoleTime", "TimeStamp"]); 81 InspectorTest.dumpPresentationRecord(rootRecord, undefined, undefine d, ["FunctionCall", "ConsoleTime", "TimeStamp"]);
82 InspectorTest.timelinePresentationModel().reset(); 82 InspectorTest.timelinePresentationModel().reset();
83 next(); 83 next();
84 } 84 }
85 InspectorTest.evaluateWithTimeline(actions, callback) 85 InspectorTest.evaluateWithTimeline(actions, callback)
86 } 86 }
87 } 87 }
88 88
89 </script> 89 </script>
90 </head> 90 </head>
91 91
92 <body onload="runTest()"> 92 <body onload="runTest()">
93 <p>Test nesting of time/timeEnd records on Timeline</p> 93 <p>Test nesting of time/timeEnd records on Timeline</p>
94 94
95 </body> 95 </body>
96 </html> 96 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698