diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/crash-when-navigating-away-then-back.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/crash-when-navigating-away-then-back.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/crash-when-navigating-away-then-back.html b/LayoutTests/http/tests/appcache/crash-when-navigating-away-then-back.html new file mode 100644 index 0000000..5b1fd9b --- /dev/null +++ b/LayoutTests/http/tests/appcache/crash-when-navigating-away-then-back.html @@ -0,0 +1,27 @@ +<html> +<script> +function openWindow() +{ + window.open('resources/crash-when-navigating-away-then-back.html') +} + +if (window.layoutTestController) { + layoutTestController.dumpAsText() + layoutTestController.waitUntilDone(); + layoutTestController.setCanOpenWindows(); +} else { + document.write('<div id="manual-instructions">Click <a href="javascript:openWindow()">this link</a> twice. A window should open and close twice without crashing.</div>') +} + +function closedWindow() +{ + if (window.layoutTestController) + setTimeout(openWindow, 100); +} + +</script> +<body onload="if (window.layoutTestController) openWindow()"> +<div>This tests that loading a page with a manifest, navigating away from the page, and then back does not cause a crash.</div> +<div id="result">FAILURE - test not completed</div> +</html> +</div> |