summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/push_messaging/push-messaging-resolve-after-detached.html
blob: a41e22d0934bc092ddfedcf62f2cf8f2b05d411f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body>
<script>
description("Test that resolving a promise after the window gets closed does not assert or crash.");

var jsTestIsAsync = true;

function openWindow() {
    window.open('resources/push-messaging-resolve-after-detached.html');
}

function done() {
    finishJSTest();
}

if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.setCanOpenWindows();
    openWindow();
}
</script>
</body>
</html>