diff options
Diffstat (limited to 'LayoutTests/storage/close-during-stress-test.html')
-rw-r--r-- | LayoutTests/storage/close-during-stress-test.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/LayoutTests/storage/close-during-stress-test.html b/LayoutTests/storage/close-during-stress-test.html new file mode 100644 index 0000000..2183e2f --- /dev/null +++ b/LayoutTests/storage/close-during-stress-test.html @@ -0,0 +1,19 @@ +<body> +<p>Should not crash or cause an assertion failure.</p> +<p>A JavaScript failure on the console is expected, however, as the global object is cleared when closing a frame. +It actually helps to cause database activity by throwing an exception from a callback.</p> +<iframe src="resources/stress-frame.html" onload="startTest()"></iframe> +<script> +if (window.layoutTestController) { + layoutTestController.waitUntilDone(); + layoutTestController.dumpAsText(); +} + +function startTest() +{ + setTimeout("document.getElementsByTagName('iframe')[0].src = 'about:blank'", 100); + if (window.layoutTestController) + setTimeout("layoutTestController.notifyDone()", 500); +} +</script> +</body> |