Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / chromium / window-close-during-registration.html
blob99a8c8d9ab6a6c0d4317e7b679582d2afefba150
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 does not assert or crash');
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>');
15 function openWindow() {
16 window.open('resources/window-close-during-registration.html');
19 function done() {
20 setTimeout(function() {
21 finishJSTest();
22 }, 100);
24 </script>
25 </body>