diff options
Diffstat (limited to 'chrome/test/data')
-rw-r--r-- | chrome/test/data/unload/nolisteners.html | 1 | ||||
-rw-r--r-- | chrome/test/data/unload/unload.html | 8 | ||||
-rw-r--r-- | chrome/test/data/unload/unloadlooping.html | 9 | ||||
-rw-r--r-- | chrome/test/data/unload/unloadloopingalert.html | 10 | ||||
-rw-r--r-- | chrome/test/data/unload/unloadloopingtwosecondsalert.html | 11 |
5 files changed, 39 insertions, 0 deletions
diff --git a/chrome/test/data/unload/nolisteners.html b/chrome/test/data/unload/nolisteners.html new file mode 100644 index 0000000..42682b4 --- /dev/null +++ b/chrome/test/data/unload/nolisteners.html @@ -0,0 +1 @@ +<html><body></body></html>
\ No newline at end of file diff --git a/chrome/test/data/unload/unload.html b/chrome/test/data/unload/unload.html new file mode 100644 index 0000000..4ce7f78 --- /dev/null +++ b/chrome/test/data/unload/unload.html @@ -0,0 +1,8 @@ +<html> +<body> +<script> +window.onunload = function(e) { +} +</script> +</body> +</html>
\ No newline at end of file diff --git a/chrome/test/data/unload/unloadlooping.html b/chrome/test/data/unload/unloadlooping.html new file mode 100644 index 0000000..134ce30 --- /dev/null +++ b/chrome/test/data/unload/unloadlooping.html @@ -0,0 +1,9 @@ +<html> +<body> +<script> +window.onunload = function(e) { + while(true) {} +} +</script> +</body> +</html>
\ No newline at end of file diff --git a/chrome/test/data/unload/unloadloopingalert.html b/chrome/test/data/unload/unloadloopingalert.html new file mode 100644 index 0000000..dacd9b5 --- /dev/null +++ b/chrome/test/data/unload/unloadloopingalert.html @@ -0,0 +1,10 @@ +<html> +<body> +<script> +window.onunload = function(e) { + while(true) {} + alert('foo'); +} +</script> +</body> +</html>
\ No newline at end of file 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 |