Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/load-flushed-script.html

Issue 650193003: [ServiceWorker] Add test for the hanging bug in loading ServiceWorker script. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/resources/load-flushed-script.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/chromium/resources/load-flushed-script.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698