| 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();
|
|
|