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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/window-close-during-registration.html

Issue 337053004: Don't assert when ServiceWorker::from is passed an empty promise (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set state ContextStopped Created 6 years, 6 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/window-close-during-registration.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/window-close-during-registration.html
diff --git a/LayoutTests/http/tests/serviceworker/resources/window-close-during-registration.html b/LayoutTests/http/tests/serviceworker/resources/window-close-during-registration.html
new file mode 100644
index 0000000000000000000000000000000000000000..069ea0ec9bb62669f62f5af524830c8431a3c351
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/window-close-during-registration.html
@@ -0,0 +1,15 @@
+<html>
+<script>
+var scope = 'empty';
+
+navigator.serviceWorker.unregister(scope).then(function() {
+ var promise = navigator.serviceWorker.register('empty-worker.js', { scope: scope });
+ window.close();
+ window.opener.done();
+ return promise;
+}).catch(function(error) {
+ window.opener.testFailed(error.message);
+ window.opener.done();
+});
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/window-close-during-registration.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698