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

Unified Diff: LayoutTests/inspector/console/console-timeline.html

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/console/console-timeline.html
diff --git a/LayoutTests/inspector/console/console-timeline.html b/LayoutTests/inspector/console/console-timeline.html
deleted file mode 100644
index b1a5dbefe80de84e790511efce0f39e50f1ce053..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/console/console-timeline.html
+++ /dev/null
@@ -1,247 +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()
-{
- WebInspector.TimelinePanel.show();
- var panel = WebInspector.panels.timeline;
- panel._model._currentTarget = WebInspector.targetManager.mainTarget();
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordAdded, eventRecorded, this);
-
- InspectorTest.runTestSuite([
- function testStartStopTimeline(next)
- {
- InspectorTest.evaluateInPage("startStopTimeline()");
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStopped, allEventsReceived, this);
-
- function allEventsReceived()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStopped, allEventsReceived, this);
- next();
- }
- },
-
- function testStartStopMultiple(next)
- {
- InspectorTest.evaluateInPage("startStopMultiple()");
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStopped, allEventsReceived, this);
-
- function allEventsReceived()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStopped, allEventsReceived, this);
- next();
- }
- },
-
- function testStartMultipleStopInsideEvals(next)
- {
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
-
- InspectorTest.evaluateInPage("startMultiple()", step2);
-
- function step2()
- {
- InspectorTest.evaluateInPage("stopTwo()", step3);
- }
-
- function step3()
- {
- InspectorTest.evaluateInPage("stopOne()", function() {});
- }
-
- function finish()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
- next();
- }
- },
-
- function testStopUnknown(next)
- {
- InspectorTest.evaluateInPage("stopUnknown()", next);
- },
-
- function testStartFromPanel(next)
- {
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStarted, recordingStarted);
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
- panel._toggleTimelineButtonClicked();
-
- function recordingStarted()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStarted, recordingStarted);
- InspectorTest.evaluateInPage("startStopTimeline()", step2);
- }
-
- function step2()
- {
- panel._toggleTimelineButtonClicked();
- }
-
- function finish()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
- next();
- }
- },
-
- function testStopFromPanel(next)
- {
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
-
- InspectorTest.evaluateInPage("startTimeline()", step2);
-
- function step2()
- {
- panel._toggleTimelineButtonClicked();
- }
-
- function finish()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
- next();
- }
- },
-
- function testRacyStart(next)
- {
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStarted, timelineStarted);
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
-
- InspectorTest.evaluateInPage("startTimeline()");
- panel._toggleTimelineButtonClicked();
-
- function timelineStarted()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStarted, timelineStarted);
- panel._toggleTimelineButtonClicked();
- }
-
- function finish()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
- next();
- }
- },
-
- function testRacyStart2(next)
- {
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStarted, timelineStarted);
- panel._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
-
- panel._toggleTimelineButtonClicked();
- InspectorTest.evaluateInPage("startTimeline()");
-
- function timelineStarted()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStarted, timelineStarted);
- // Fool listener order execution.
- setTimeout(panel._toggleTimelineButtonClicked.bind(panel));
- }
-
- function finish()
- {
- panel._model.removeEventListener(WebInspector.TimelineModel.Events.RecordingStopped, finish, this);
- next();
- }
- }
- ]);
-
- function eventRecorded(event)
- {
- function print(record)
- {
- if (record.type() === "TimeStamp")
- InspectorTest.addResult(record.data().message);
-
- for (var i = 0; i < record.children().length; ++i)
- print(record.children()[i]);
- }
- print(event.data);
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests console.timeline and timelineEnd commands.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698