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

Side by Side Diff: LayoutTests/http/tests/serviceworker/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: fix V8GarbageCollected ASSERT 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <body>
4 <script>
5 window.jsTestIsAsync = true;
6 description('Test that closing the window during Service Worker registration doe s not assert or crash');
7
8 if (window.testRunner) {
9 testRunner.setCanOpenWindows();
10 openWindow();
11 } else {
12 document.write('<p>Click <a href="javascript:openWindow()">this link</a>. A window should open and close without asserting or crashing.</p>');
13 }
14
15 function openWindow() {
16 window.open('resources/window-close-during-registration.html');
17 }
18
19 function done() {
20 setTimeout(function() {
21 finishJSTest();
22 }, 100);
23 }
24 </script>
25 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698