Index: LayoutTests/inspector/tracing/timeline-network-received-data.html |
diff --git a/LayoutTests/inspector/tracing/timeline-network-received-data.html b/LayoutTests/inspector/tracing/timeline-network-received-data.html |
index 851c8807e717ff20774e76ecc3fbc454b00a3f1e..a7372e67c1d606ab01f60c6ebecb41f394292175 100644 |
--- a/LayoutTests/inspector/tracing/timeline-network-received-data.html |
+++ b/LayoutTests/inspector/tracing/timeline-network-received-data.html |
@@ -39,7 +39,8 @@ function test() |
InspectorTest.addResult("Script evaluated."); |
var record = InspectorTest.findFirstTimelineRecord("ResourceReceivedData"); |
if (record) { |
- if (record.data() && typeof record.data().encodedDataLength === "number") |
+ var data = record.traceEvent().args["data"]; |
+ if (data && typeof data.encodedDataLength === "number") |
InspectorTest.addResult("Resource received data has length, test passed."); |
} |
InspectorTest.completeTest(); |