| Index: third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-content-encoding.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-content-encoding.html b/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-content-encoding.js
|
| similarity index 76%
|
| copy from third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-content-encoding.html
|
| copy to third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-content-encoding.js
|
| index f555b4f81ed4d2a101560d3e5b9c24dda88f0dd4..0baeda783495bfde5da916ec33e7b80e1ee3ff97 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-content-encoding.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-content-encoding.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-content-encoding.html
|
| +// and resource-timing-sizes-content-encoding-worker.html
|
| +
|
| +if (typeof document === 'undefined') {
|
| + importScripts('/resources/testharness.js',
|
| + '/misc/resources/run-async-tasks-promise.js');
|
| +}
|
| +
|
| const url = '/misc/resources/gzip-content-encoding.php';
|
| const uncompressedSize = 1250;
|
|
|
| @@ -29,4 +32,5 @@ promise_test(() => {
|
| .then(runAsyncTasks)
|
| .then(checkResourceSizes);
|
| }, 'PerformanceResourceTiming sizes compressed content test');
|
| -</script>
|
| +
|
| +done();
|
|
|