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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-network-resource.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-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>

Powered by Google App Engine
This is Rietveld 408576698