| Index: third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-cache.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-cache.html b/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-cache.js
|
| similarity index 88%
|
| copy from third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-cache.html
|
| copy to third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-cache.js
|
| index 3e7088b90d6f023dee2857ff396958d333901e4e..fec5fd0455a3423b70db7febef35594cf4147b42 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-cache.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-cache.js
|
| @@ -1,8 +1,11 @@
|
| -<!DOCTYPE html>
|
| -<script src="/resources/testharness.js"></script>
|
| -<script src="/resources/testharnessreport.js"></script>
|
| -<script src="/misc/resources/run-async-tasks-promise.js"></script>
|
| -<script>
|
| +// This test code is shared between resource-timing-sizes-cache.html and
|
| +// resource-timing-sizes-cache-worker.html
|
| +
|
| +if (typeof document === 'undefined') {
|
| + importScripts('/resources/testharness.js',
|
| + '/misc/resources/run-async-tasks-promise.js');
|
| +}
|
| +
|
| // The header bytes are expected to be > |minHeaderSize| and
|
| // < |maxHeaderSize|. If they are outside this range the test will fail.
|
| const minHeaderSize = 100;
|
| @@ -60,4 +63,4 @@ promise_test(() => {
|
| .then(checkResourceSizes);
|
| }, 'PerformanceResourceTiming sizes caching test');
|
|
|
| -</script>
|
| +done();
|
|
|