| Index: third_party/WebKit/LayoutTests/http/tests/preload/document_write_preload.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/document_write_preload.html b/third_party/WebKit/LayoutTests/http/tests/preload/document_write_preload.html
|
| index 4cca6884b7a94b7785c910348726cf4143a2b874..7533bcbf7f21df4701258fce2354224cb339601a 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/preload/document_write_preload.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/preload/document_write_preload.html
|
| @@ -14,9 +14,12 @@ document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
|
| </script>
|
| <script>
|
| window.addEventListener("load", t.step_func(function() {
|
| - var resourceTiming = window.performance.getEntriesByType('resource')[2];
|
| - assert_less_than(resourceTiming.startTime, boundedStart);
|
| - t.done();
|
| + window.performance.getEntriesByType('resource').forEach(function(r) {
|
| + if (r.name.indexOf('dummy.js') != -1) {
|
| + assert_less_than(r.startTime, boundedStart);
|
| + t.done();
|
| + }
|
| + });
|
| }));
|
| </script>
|
|
|
|
|