| 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 testRunner.setDumpConsoleMessages(false); | 7 testRunner.setDumpConsoleMessages(false); |
| 8 | 8 |
| 9 function simpleConsoleTime() | 9 function simpleConsoleTime() |
| 10 { | 10 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 performActions("consoleTimeWithoutConsoleTimeEnd()", next); | 74 performActions("consoleTimeWithoutConsoleTimeEnd()", next); |
| 75 } | 75 } |
| 76 ]); | 76 ]); |
| 77 | 77 |
| 78 function performActions(actions, next) | 78 function performActions(actions, next) |
| 79 { | 79 { |
| 80 var namesToDump = new Set(["FunctionCall", "ConsoleTime", "TimeStamp"]); | 80 var namesToDump = new Set(["FunctionCall", "ConsoleTime", "TimeStamp"]); |
| 81 function dumpName(event, level) | 81 function dumpName(event, level) |
| 82 { | 82 { |
| 83 if (namesToDump.has(event.name)) | 83 if (namesToDump.has(event.name)) |
| 84 InspectorTest.addResult("----".repeat(level) + "> " + WebInspect
or.TimelineUIUtils.eventTitle(event)); | 84 InspectorTest.addResult("----".repeat(level) + "> " + Timeline.T
imelineUIUtils.eventTitle(event)); |
| 85 } | 85 } |
| 86 function callback() | 86 function callback() |
| 87 { | 87 { |
| 88 InspectorTest.walkTimelineEventTree(dumpName); | 88 InspectorTest.walkTimelineEventTree(dumpName); |
| 89 next(); | 89 next(); |
| 90 } | 90 } |
| 91 WebInspector.panels.timeline._captureJSProfileSetting.set(false); | 91 UI.panels.timeline._captureJSProfileSetting.set(false); |
| 92 InspectorTest.evaluateWithTimeline(actions, InspectorTest.safeWrap(callb
ack), true); | 92 InspectorTest.evaluateWithTimeline(actions, InspectorTest.safeWrap(callb
ack), true); |
| 93 } | 93 } |
| 94 } | 94 } |
| 95 | 95 |
| 96 </script> | 96 </script> |
| 97 </head> | 97 </head> |
| 98 | 98 |
| 99 <body onload="runTest()"> | 99 <body onload="runTest()"> |
| 100 <p>Test nesting of time/timeEnd records on Timeline</p> | 100 <p>Test nesting of time/timeEnd records on Timeline</p> |
| 101 | 101 |
| 102 </body> | 102 </body> |
| 103 </html> | 103 </html> |
| OLD | NEW |