3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/timeline-test.js"></script>
7 function simpleConsoleTime()
13 function nestedConsoleTime()
32 function unbalancedConsoleTime()
40 function consoleTimeWithoutConsoleTimeEnd()
42 console
.timeStamp("Foo");
44 console
.timeStamp("Bar");
48 console
.timeStamp("Baz");
54 InspectorTest
.runTestSuite([
55 function testSimpleConsoleTime(next
)
57 performActions("simpleConsoleTime()", next
);
60 function testNestedConsoleTime(next
)
62 performActions("nestedConsoleTime()", next
);
65 function testUnbalancedConsoleTime(next
)
67 performActions("unbalancedConsoleTime()", next
);
70 function testConsoleTimeWithoutConsoleTimeEnd(next
)
72 performActions("consoleTimeWithoutConsoleTimeEnd()", next
);
76 function performActions(actions
, next
)
80 var rootRecord
= InspectorTest
.timelinePresentationModel().rootRecord();
81 InspectorTest
.dumpPresentationRecord(rootRecord
, undefined, undefined, ["FunctionCall", "ConsoleTime", "TimeStamp"]);
82 InspectorTest
.timelinePresentationModel().reset();
85 InspectorTest
.evaluateWithTimeline(actions
, InspectorTest
.safeWrap(callback
));
92 <body onload=
"runTest()">
93 <p>Test nesting of time/timeEnd records on Timeline
</p>