| Index: LayoutTests/inspector/timeline/timeline-receive-response-event.html
|
| diff --git a/LayoutTests/inspector/timeline/timeline-receive-response-event.html b/LayoutTests/inspector/timeline/timeline-receive-response-event.html
|
| deleted file mode 100644
|
| index 9a784f1e5591e475caaca023a1f4a8f71b461a0c..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/timeline/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(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();
|
| - InspectorTest.invokeAsyncWithTimeline("performActions", finish);
|
| -
|
| - function finish()
|
| - {
|
| - function dumpFormattedRecord(presentationRecord, prefix)
|
| - {
|
| - var record = presentationRecord.record();
|
| - prefix = prefix || "";
|
| - // Here and below: pretend coalesced record are just not there, as coalescation is time dependent and, hence, not stable.
|
| - var categoryName = WebInspector.panels.timeline._uiUtils.categoryForRecord(record).name;
|
| - if (categoryName !== "loading" && categoryName !== "scripting")
|
| - return;
|
| - if (!presentationRecord.coalesced() && record.type() !== "GCEvent")
|
| - InspectorTest.addResult(prefix + record.type());
|
| - // Ignore stray paint & rendering events for better stability.
|
| - if (presentationRecord.presentationChildren()) {
|
| - var childPrefix = prefix + (presentationRecord.coalesced() ? "" : " ");
|
| - for (var i = 0; i < presentationRecord.presentationChildren().length; ++i)
|
| - dumpFormattedRecord(presentationRecord.presentationChildren()[i], childPrefix);
|
| - }
|
| - }
|
| - var records = WebInspector.panels.timeline._currentViews[0]._rootRecord().presentationChildren();
|
| - for (var i = 0; i < records.length; ++i)
|
| - dumpFormattedRecord(records[i]);
|
| - 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>
|
|
|