OLD | NEW |
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 Loading... |
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> |
OLD | NEW |