| Index: third_party/WebKit/LayoutTests/inspector/tracing/console-timeline.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/console-timeline.html b/third_party/WebKit/LayoutTests/inspector/tracing/console-timeline.html
|
| deleted file mode 100644
|
| index d4fb6b6b9aba4831e2bc0bd899ad40a356b64cb1..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/console-timeline.html
|
| +++ /dev/null
|
| @@ -1,197 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../http/tests/inspector/console-test.js"></script>
|
| -<script src="../../http/tests/inspector/timeline-test.js"></script>
|
| -<script>
|
| -
|
| -function startStopTimeline()
|
| -{
|
| - console.timeStamp("timestamp 0");
|
| - console.timeline("one");
|
| - console.timeStamp("timestamp 1");
|
| - console.timelineEnd("one");
|
| - console.timeStamp("timestamp 2");
|
| -}
|
| -
|
| -function startStopMultiple()
|
| -{
|
| - console.timeStamp("timestamp 0");
|
| - console.timeline("one");
|
| - console.timeStamp("timestamp 1");
|
| - console.timeline("one");
|
| - console.timeline("two");
|
| - console.timeline("two");
|
| - console.timelineEnd("two");
|
| - console.timeStamp("timestamp 2");
|
| - console.timelineEnd("one");
|
| - console.timeStamp("timestamp 3");
|
| - console.timelineEnd("two");
|
| - console.timeStamp("timestamp 4");
|
| - console.timelineEnd("one");
|
| - console.timeStamp("timestamp 5");
|
| -}
|
| -
|
| -function startMultiple()
|
| -{
|
| - console.timeStamp("timestamp 0");
|
| - console.timeline("one");
|
| - console.timeStamp("timestamp 1");
|
| - console.timeline("two");
|
| - console.timeStamp("timestamp 2");
|
| -}
|
| -
|
| -function stopTwo()
|
| -{
|
| - console.timeStamp("timestamp 3");
|
| - console.timelineEnd("two");
|
| - console.timeStamp("timestamp 4");
|
| -}
|
| -
|
| -function stopOne()
|
| -{
|
| - console.timeStamp("timestamp 5");
|
| - console.timelineEnd("one");
|
| - console.timeStamp("timestamp 6 - FAIL");
|
| -}
|
| -
|
| -function stopUnknown()
|
| -{
|
| - console.timeStamp("timestamp 0");
|
| - console.timeline("one");
|
| - console.timeStamp("timestamp 1");
|
| - console.timelineEnd("two");
|
| - console.timeStamp("timestamp 2");
|
| - console.timelineEnd("one");
|
| - console.timeStamp("timestamp 3");
|
| -}
|
| -
|
| -function startTimeline()
|
| -{
|
| - console.timeStamp("timestamp 0");
|
| - console.timeline("one");
|
| - console.timeStamp("timestamp 1");
|
| - console.timeline("two");
|
| - console.timeStamp("timestamp 2");
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - var panel = WebInspector.panels.timeline;
|
| - panel._model._currentTarget = WebInspector.targetManager.mainTarget();
|
| -
|
| - InspectorTest.runTestSuite([
|
| - function testStartStopTimeline(next)
|
| - {
|
| - InspectorTest.evaluateWithTimeline("startStopTimeline()", allEventsReceived);
|
| -
|
| - function allEventsReceived()
|
| - {
|
| - printTimelineAndTimestampEvents();
|
| - next();
|
| - }
|
| - },
|
| -
|
| - function testStartStopMultiple(next)
|
| - {
|
| - InspectorTest.evaluateWithTimeline("startStopMultiple()", allEventsReceived);
|
| -
|
| - function allEventsReceived()
|
| - {
|
| - printTimelineAndTimestampEvents();
|
| - next();
|
| - }
|
| - },
|
| -
|
| - function testStartMultipleStopInsideEvals(next)
|
| - {
|
| - InspectorTest.startTimeline(step1);
|
| -
|
| - function step1()
|
| - {
|
| - InspectorTest.evaluateInPage("startMultiple()", step2);
|
| - }
|
| -
|
| - function step2()
|
| - {
|
| - InspectorTest.evaluateInPage("stopTwo()", step3);
|
| - }
|
| -
|
| - function step3()
|
| - {
|
| - InspectorTest.evaluateInPage("stopOne()", step4);
|
| - }
|
| -
|
| - function step4()
|
| - {
|
| - InspectorTest.stopTimeline(finish);
|
| - }
|
| -
|
| - function finish()
|
| - {
|
| - printTimelineAndTimestampEvents();
|
| - next();
|
| - }
|
| - },
|
| -
|
| - function testStopUnknown(next)
|
| - {
|
| - InspectorTest.evaluateWithTimeline("stopUnknown()", allEventsReceived);
|
| -
|
| - function allEventsReceived()
|
| - {
|
| - printTimelineAndTimestampEvents();
|
| - next();
|
| - }
|
| - },
|
| -
|
| - function testStartFromPanel(next)
|
| - {
|
| - InspectorTest.evaluateWithTimeline("startStopTimeline()", finish)
|
| -
|
| - function finish()
|
| - {
|
| - printTimelineAndTimestampEvents();
|
| - next();
|
| - }
|
| - },
|
| -
|
| - function testStopFromPanel(next)
|
| - {
|
| - InspectorTest.evaluateWithTimeline("startTimeline()", finish)
|
| -
|
| - function finish()
|
| - {
|
| - printTimelineAndTimestampEvents();
|
| - next();
|
| - }
|
| - }
|
| - ]);
|
| -
|
| - function printTimelineAndTimestampEvents() {
|
| - panel._tracingModel.sortedProcesses().forEach(function(process)
|
| - {
|
| - process.sortedThreads().forEach(function(thread)
|
| - {
|
| - thread.events().forEach(function(event)
|
| - {
|
| - if (event.hasCategory(WebInspector.TimelineModel.Category.Console))
|
| - InspectorTest.addResult(event.name);
|
| - else if (event.name === WebInspector.TimelineModel.RecordType.TimeStamp)
|
| - InspectorTest.addResult(event.args["data"]["message"]);
|
| - });
|
| - });
|
| - });
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests console.timeline and timelineEnd commands.
|
| -</p>
|
| -
|
| -</body>
|
| -</html>
|
|
|