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

Side by Side Diff: LayoutTests/push_messaging/push-messaging-resolve-after-detached.html

Issue 396963002: ServiceWorker: Bypass resolving a promise when ExecutionContext is gone (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Test that resolving a promise after the window gets closed does not assert or crash.");
9
10 var jsTestIsAsync = true;
11
12 function openWindow() {
13 window.open('resources/push-messaging-resolve-after-detached.html');
14 }
15
16 function done() {
17 finishJSTest();
18 }
19
20 if (window.testRunner) {
21 testRunner.dumpAsText();
22 testRunner.setCanOpenWindows();
23 openWindow();
24 }
25 </script>
26 </body>
27 </html>
28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698