diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/navigating-away-while-cache-attempt-in-progress.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/navigating-away-while-cache-attempt-in-progress.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/navigating-away-while-cache-attempt-in-progress.html b/LayoutTests/http/tests/appcache/navigating-away-while-cache-attempt-in-progress.html new file mode 100644 index 0000000..7e7920a --- /dev/null +++ b/LayoutTests/http/tests/appcache/navigating-away-while-cache-attempt-in-progress.html @@ -0,0 +1,21 @@ +<html manifest="resources/navigating-away-while-cache-attempt-in-progress.manifest"> + +<script> +if (window.layoutTestController) { + layoutTestController.dumpAsText() + layoutTestController.waitUntilDone(); +} + +function navigateAway() { + if (window.layoutTestController) + layoutTestController.notifyDone(); + else + window.location.href = "about:blank" +} + +setTimeout(navigateAway, 1000); + +</script> +<div>This tests that navigating away while a cache is loading does not crash.</div> +<div>SUCCESS - did not crash</div> +</html> |