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

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

Issue 461323003: DevTools: Make Timeline tests use only model records (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/timeline/timeline-network-received-data.html
diff --git a/LayoutTests/inspector/timeline/timeline-network-received-data.html b/LayoutTests/inspector/timeline/timeline-network-received-data.html
index a2e89f30fc21eb16ac39f9206e02b2b267e2ac9f..851c8807e717ff20774e76ecc3fbc454b00a3f1e 100644
--- a/LayoutTests/inspector/timeline/timeline-network-received-data.html
+++ b/LayoutTests/inspector/timeline/timeline-network-received-data.html
@@ -37,10 +37,9 @@ function test()
function done()
{
InspectorTest.addResult("Script evaluated.");
- var filteredRecords = InspectorTest.filterTimelineRecords("ResourceReceivedData");
- if (filteredRecords.length) {
- var record = filteredRecords[0];
- if (record.data && record.data && typeof record.data.encodedDataLength === "number")
+ var record = InspectorTest.findFirstTimelineRecord("ResourceReceivedData");
+ if (record) {
+ if (record.data() && typeof record.data().encodedDataLength === "number")
InspectorTest.addResult("Resource received data has length, test passed.");
}
InspectorTest.completeTest();

Powered by Google App Engine
This is Rietveld 408576698