| Index: LayoutTests/http/tests/serviceworker/window-close-during-registration.html
|
| diff --git a/LayoutTests/http/tests/serviceworker/window-close-during-registration.html b/LayoutTests/http/tests/serviceworker/window-close-during-registration.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..99a8c8d9ab6a6c0d4317e7b679582d2afefba150
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/serviceworker/window-close-during-registration.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<script src="/js-test-resources/js-test.js"></script>
|
| +<body>
|
| +<script>
|
| +window.jsTestIsAsync = true;
|
| +description('Test that closing the window during Service Worker registration does not assert or crash');
|
| +
|
| +if (window.testRunner) {
|
| + testRunner.setCanOpenWindows();
|
| + openWindow();
|
| +} else {
|
| + document.write('<p>Click <a href="javascript:openWindow()">this link</a>. A window should open and close without asserting or crashing.</p>');
|
| +}
|
| +
|
| +function openWindow() {
|
| + window.open('resources/window-close-during-registration.html');
|
| +}
|
| +
|
| +function done() {
|
| + setTimeout(function() {
|
| + finishJSTest();
|
| + }, 100);
|
| +}
|
| +</script>
|
| +</body>
|
|
|