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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html

Issue 2540023003: Dispatch encoded_data_length separately in content/child (Closed)
Patch Set: fix Created 4 years 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-misc/timeline-receive-response-event.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-receive-response-event.html
deleted file mode 100644
index c9faa63cc2391b47fe2eaa964a4fb8de30694f8d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/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()
-{
- var callback;
- var promise = new Promise((fulfill) => callback = fulfill);
- 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";
- }
- return promise;
-}
-
-function test()
-{
- UI.viewManager.showView("timeline");
- UI.panels.timeline._model._currentTarget = SDK.targetManager.mainTarget();
- UI.panels.timeline._captureJSProfileSetting.set(false);
- InspectorTest.invokeAsyncWithTimeline("performActions", finish);
-
- function finish()
- {
- var recordTypes = TimelineModel.TimelineModel.RecordType;
- var typesToDump = new Set([recordTypes.ResourceSendRequest, recordTypes.ResourceReceiveResponse, recordTypes.ResourceReceivedData, recordTypes.ResourceFinish,
- recordTypes.EventDispatch, recordTypes.FunctionCall]);
- function dumpEvent(traceEvent, level)
- {
- // Ignore stray paint & rendering events for better stability.
- var categoryName = Timeline.TimelineUIUtils.eventStyle(traceEvent).category.name;
- if (categoryName !== "loading" && categoryName !== "scripting")
- return;
- // Here and below: pretend coalesced record are just not there, as coalescation is time dependent and, hence, not stable.
- // Filter out InjectedScript function call because they happen out of sync.
- if (typesToDump.has(traceEvent.name) && (traceEvent.name !== "FunctionCall" || traceEvent.args["data"]["url"]))
- InspectorTest.addResult(" ".repeat(level - 1) + traceEvent.name);
- }
- InspectorTest.walkTimelineEventTree(dumpEvent);
- 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