Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource.html |
deleted file mode 100644 |
index c3011d8f0ecbc054254806792921aa0f832c5513..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource.html |
+++ /dev/null |
@@ -1,89 +0,0 @@ |
-<html> |
-<head> |
-<script src="../../http/tests/inspector/inspector-test.js"></script> |
-<script src="../../http/tests/inspector/timeline-test.js"></script> |
-<script> |
- |
-var scriptUrl = "timeline-network-resource.js"; |
- |
-function performActions(callback) |
-{ |
- window.timelineNetworkResourceEvaluated = callback; |
- var script = document.createElement("script"); |
- script.src = scriptUrl; |
- document.body.appendChild(script); |
-} |
- |
-function test() |
-{ |
- var requestId; |
- var scriptUrl = "timeline-network-resource.js"; |
- |
- var model = WebInspector.panels.timeline._model; |
- |
- InspectorTest.invokeAsyncWithTimeline("performActions", finish); |
- |
- function finish() |
- { |
- var lastRecordStartTime; |
- function format(record) |
- { |
- if (record.type() === WebInspector.TimelineModel.RecordType.ResourceSendRequest) |
- printSend(record); |
- else if (record.type() === WebInspector.TimelineModel.RecordType.ResourceReceiveResponse) |
- printReceive(record); |
- else if (record.type() === WebInspector.TimelineModel.RecordType.ResourceFinish) |
- printFinish(record); |
- } |
- model.forAllRecords(format); |
- InspectorTest.completeTest(); |
- } |
- |
- function printRecord(record) |
- { |
- InspectorTest.addResult(""); |
- InspectorTest.printTimelineRecordProperties(record); |
- InspectorTest.addResult("Text details for " + record.type() + ": " + WebInspector.TimelineUIUtils.buildDetailsTextForTraceEvent(record.traceEvent())); |
- } |
- |
- function printSend(record) |
- { |
- printRecord(record); |
- var data = record.traceEvent().args["data"]; |
- requestId = data.requestId; |
- if (data.url === undefined) |
- InspectorTest.addResult("* No 'url' property in record"); |
- else if (data.url.indexOf(scriptUrl) === -1) |
- InspectorTest.addResult("* Didn't find URL: " + scriptUrl); |
- } |
- |
- function printReceive(record) |
- { |
- printRecord(record); |
- var data = record.traceEvent().args["data"]; |
- if (requestId !== data.requestId) |
- InspectorTest.addResult("Didn't find matching requestId: " + requestId); |
- if (data.statusCode !== 0) |
- InspectorTest.addResult("Response received status: " + data.statusCode); |
- } |
- |
- function printFinish(record) |
- { |
- printRecord(record); |
- var data = record.traceEvent().args["data"]; |
- if (requestId !== data.requestId) |
- InspectorTest.addResult("Didn't find matching requestId: " + requestId); |
- if (data.didFail) |
- InspectorTest.addResult("Request failed."); |
- } |
-} |
- |
-</script> |
-</head> |
- |
-<body onload="runTest()"> |
-<p> |
-Tests the Timeline API instrumentation of a network resource load |
-</p> |
-</body> |
-</html> |