diff options
Diffstat (limited to 'chrome/test/data/unload/unloadloopingtwosecondsalert.html')
-rw-r--r-- | chrome/test/data/unload/unloadloopingtwosecondsalert.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/test/data/unload/unloadloopingtwosecondsalert.html b/chrome/test/data/unload/unloadloopingtwosecondsalert.html new file mode 100644 index 0000000..ec796f9 --- /dev/null +++ b/chrome/test/data/unload/unloadloopingtwosecondsalert.html @@ -0,0 +1,11 @@ +<html> +<body> +<script> +window.onunload = function(e) { + var start = new Date().getTime(); + while(new Date().getTime() - start < 2000) {} + alert('foo'); +} +</script> +</body> +</html>
\ No newline at end of file |