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

Unified Diff: LayoutTests/inspector/tracing/timeline-network-received-data.html

Issue 1315373005: DevTools: remove most convenience wrappers from WI.TimelineModel.Record (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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-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();

Powered by Google App Engine
This is Rietveld 408576698