Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html |
deleted file mode 100644 |
index c9faa63cc2391b47fe2eaa964a4fb8de30694f8d..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html |
+++ /dev/null |
@@ -1,64 +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() |
-{ |
- var callback; |
- var promise = new Promise((fulfill) => callback = fulfill); |
- 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"; |
- } |
- return promise; |
-} |
- |
-function test() |
-{ |
- UI.viewManager.showView("timeline"); |
- UI.panels.timeline._model._currentTarget = SDK.targetManager.mainTarget(); |
- UI.panels.timeline._captureJSProfileSetting.set(false); |
- InspectorTest.invokeAsyncWithTimeline("performActions", finish); |
- |
- function finish() |
- { |
- var recordTypes = TimelineModel.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 = Timeline.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"]["url"])) |
- 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> |