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

Unified Diff: LayoutTests/inspector/timeline/timeline-receive-response-event.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-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>

Powered by Google App Engine
This is Rietveld 408576698