| Index: third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-redirect.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-redirect.html b/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-redirect.js
|
| similarity index 90%
|
| copy from third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-redirect.html
|
| copy to third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-redirect.js
|
| index 729ee3223f034a82c66699182047dd4c81d29ddc..4426fa595221a6a43a2b7b0351c16e8ba2933f63 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-redirect.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-redirect.js
|
| @@ -1,9 +1,12 @@
|
| -<!DOCTYPE html>
|
| -<script src="/resources/testharness.js"></script>
|
| -<script src="/resources/testharnessreport.js"></script>
|
| -<script src="/resources/get-host-info.js?pipe=sub"></script>
|
| -<script src="/misc/resources/run-async-tasks-promise.js"></script>
|
| -<script>
|
| +// This test code is shared between resource-timing-sizes-redirect.html and
|
| +// resource-timing-sizes-redirect-worker.html
|
| +
|
| +if (typeof document === 'undefined') {
|
| + importScripts('/resources/testharness.js',
|
| + '/resources/get-host-info.js?pipe=sub',
|
| + '/misc/resources/run-async-tasks-promise.js');
|
| +}
|
| +
|
| const baseUrl =
|
| new URL('/security/resources/cors-hello.php', location.href).href;
|
| const expectedSize = 73;
|
| @@ -96,4 +99,5 @@ promise_test(() => {
|
| .then(runAsyncTasks)
|
| .then(checkResourceSizes);
|
| }, 'PerformanceResourceTiming sizes Fetch with redirect test');
|
| -</script>
|
| +
|
| +done();
|
|
|