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> |