| Index: LayoutTests/http/tests/serviceworker/chromium/load-flushed-script.html
|
| diff --git a/LayoutTests/http/tests/serviceworker/chromium/load-flushed-script.html b/LayoutTests/http/tests/serviceworker/chromium/load-flushed-script.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6ba22b902841e5d4e297e5ebd0dba337eca27f9e
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/serviceworker/chromium/load-flushed-script.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<title>Service Worker: Load flushed script</title>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../resources/test-helpers.js"></script>
|
| +<script>
|
| +async_test(function(t) {
|
| + var scope = 'resources/load-flushed-script.html';
|
| + service_worker_unregister_and_register(
|
| + t, 'resources/load-flushed-script.php', scope)
|
| + .then(function(registration) {
|
| + return wait_for_update(t, registration);
|
| + })
|
| + .then(function(sw) {
|
| + service_worker_unregister_and_done(t, scope);
|
| + })
|
| + .catch(unreached_rejection(t));
|
| + },
|
| + 'Don\'t hang while registering a flushed Service Worker script.',
|
| + {timeout: 10000});
|
| +</script>
|
|
|