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

Unified Diff: LayoutTests/inspector/timeline/timeline-network-resource.html

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month 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: LayoutTests/inspector/timeline/timeline-network-resource.html
diff --git a/LayoutTests/inspector/timeline/timeline-network-resource.html b/LayoutTests/inspector/timeline/timeline-network-resource.html
deleted file mode 100644
index 63f3d6d184551e88aa62131ac3acfdbb071e3181..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/timeline/timeline-network-resource.html
+++ /dev/null
@@ -1,96 +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;
- var presentationModel = InspectorTest.timelinePresentationModel();
-
- 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);
-
- var presentationRecord = presentationModel.toPresentationRecord(record);
- if (presentationRecord && record.thread() === WebInspector.TimelineModel.MainThreadName) {
- var parentIsRoot = presentationRecord.presentationParent() && !presentationRecord.presentationParent().presentationParent();
- if (parentIsRoot) {
- if (lastRecordStartTime)
- InspectorTest.assertGreaterOrEqual(record.startTime(), lastRecordStartTime, "Top level records order violation");
- lastRecordStartTime = record.startTime();
- }
- }
- }
- model.forAllRecords(format);
- InspectorTest.completeTest();
- }
-
- function printRecord(record)
- {
- InspectorTest.addResult("");
- InspectorTest.printTimelineRecordProperties(record);
- }
-
- function printSend(record)
- {
- printRecord(record);
- requestId = record.data().requestId;
- if (record.data().url === undefined)
- InspectorTest.addResult("* No 'url' property in record");
- else if (record.data().url.indexOf(scriptUrl) === -1)
- InspectorTest.addResult("* Didn't find URL: " + scriptUrl);
- }
-
- function printReceive(record)
- {
- printRecord(record);
- if (requestId !== record.data().requestId)
- InspectorTest.addResult("Didn't find matching requestId: " + requestId);
- if (record.data().statusCode !== 0)
- InspectorTest.addResult("Response received status: " + record.data().statusCode);
- }
-
- function printFinish(record)
- {
- printRecord(record);
- if (requestId !== record.data().requestId)
- InspectorTest.addResult("Didn't find matching requestId: " + requestId);
- if (record.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