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

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

Issue 1353653003: DevTools: cleanup timeline concise record details generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed WS urls to be those of WS, not script Created 5 years, 3 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: LayoutTests/inspector/tracing/timeline-receive-response-event.html
diff --git a/LayoutTests/inspector/tracing/timeline-receive-response-event.html b/LayoutTests/inspector/tracing/timeline-receive-response-event.html
index e824b27e03bebda21abf30891ae462f313d1ca37..746fee1cae523c3f88389c601abb00d9dc48c99c 100644
--- a/LayoutTests/inspector/tracing/timeline-receive-response-event.html
+++ b/LayoutTests/inspector/tracing/timeline-receive-response-event.html
@@ -26,6 +26,7 @@ function test()
function finish()
{
+ var typesToDump = new Set(["ResourceSendRequest", "ResourceReceiveResponse", "ResourceReceivedData", "ResourceFinish", "EventDispatch", "FunctionCall"]);
yurys 2015/09/21 18:49:32 Can we reference constants from TimelineModel.js i
function dumpFormattedRecord(presentationRecord, prefix)
{
var record = presentationRecord.record();
@@ -37,8 +38,7 @@ function test()
var childPrefix = prefix;
// 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 (!presentationRecord.coalesced()
- && record.type() !== "GCEvent"
+ if (!presentationRecord.coalesced() && typesToDump.has(record.type())
&& (record.type() !== "FunctionCall" || record.traceEvent().args["data"].scriptName)) {
InspectorTest.addResult(prefix + record.type());
childPrefix = childPrefix + " ";

Powered by Google App Engine
This is Rietveld 408576698