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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html

Issue 2145873002: [DevTools] Split inspector/tracing into subdirectories to speed things up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/timeline-receive-response-event.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html
deleted file mode 100644
index c4512b49b4192f244b8a3f794c1c3e6f8dab3239..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/timeline-test.js"></script>
-<script>
-
-function performActions(callback)
-{
- var image = new Image();
- image.onload = bar;
- image.src = "resources/anImage.png";
-
- function bar()
- {
- var image = new Image();
- image.onload = function(event) { callback(); } // do not pass event argument to the callback.
- image.src = "resources/anotherImage.png";
- }
-}
-
-function test()
-{
- WebInspector.TimelinePanel.show();
- WebInspector.panels.timeline._model._currentTarget = WebInspector.targetManager.mainTarget();
- WebInspector.panels.timeline._captureJSProfileSetting.set(false);
- InspectorTest.invokeAsyncWithTimeline("performActions", finish);
-
- function finish()
- {
- var recordTypes = WebInspector.TimelineModel.RecordType;
- var typesToDump = new Set([recordTypes.ResourceSendRequest, recordTypes.ResourceReceiveResponse, recordTypes.ResourceReceivedData, recordTypes.ResourceFinish,
- recordTypes.EventDispatch, recordTypes.FunctionCall]);
- function dumpEvent(traceEvent, level)
- {
- // Ignore stray paint & rendering events for better stability.
- var categoryName = WebInspector.TimelineUIUtils.eventStyle(traceEvent).category.name;
- if (categoryName !== "loading" && categoryName !== "scripting")
- return;
- // Here and below: pretend coalesced record are just not there, as coalescation is time dependent and, hence, not stable.
- // Filter out InjectedScript function call because they happen out of sync.
- if (typesToDump.has(traceEvent.name) && (traceEvent.name !== "FunctionCall" || traceEvent.args["data"].scriptName))
- InspectorTest.addResult(" ".repeat(level - 1) + traceEvent.name);
- }
- InspectorTest.walkTimelineEventTree(dumpEvent);
- InspectorTest.completeTest();
- }
-}
-
-if (!window.testRunner)
- setTimeout(performActions, 3000);
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698