Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html |
index e824b27e03bebda21abf30891ae462f313d1ca37..820adc54cd60312c479b77c82dc7babc38bedb97 100644 |
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html |
+++ b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-receive-response-event.html |
@@ -26,6 +26,9 @@ function test() |
function finish() |
{ |
+ var recordTypes = WebInspector.TimelineModel.RecordType; |
+ var typesToDump = new Set([recordTypes.ResourceSendRequest, recordTypes.ResourceReceiveResponse, recordTypes.ResourceReceivedData, recordTypes.ResourceFinish, |
+ recordTypes.EventDispatch, recordTypes.FunctionCall]); |
function dumpFormattedRecord(presentationRecord, prefix) |
{ |
var record = presentationRecord.record(); |
@@ -37,8 +40,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 + " "; |