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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/console-timeline.html

Issue 1859293002: [DevTools] Move Console to v8_inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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: 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>

Powered by Google App Engine
This is Rietveld 408576698