Chromium Code Reviews| 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..467a8cce93cefdc75ead3da36228bb4c4ed4ccd6 |
| --- /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: 2000}); |
|
michaeln
2014/10/17 21:22:01
might want to increase the timeout value
horo
2014/10/20 03:01:42
Changed to 10000
|
| +</script> |