2 <script src=
"/js-test-resources/js-test.js"></script>
5 window
.jsTestIsAsync
= true;
6 description('Test that resolving a promise after the window gets closed does not assert or crash');
8 if (window
.testRunner
) {
9 testRunner
.setCanOpenWindows();
12 document
.write('<p>Click <a href="javascript:openWindow()">this link</a>. A window should open and close without asserting or crashing.</p>');
15 function openWindow() {
16 window
.open('resources/resolve-after-window-close.html');