diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/deferred-events-delete-while-raising.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/deferred-events-delete-while-raising.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/deferred-events-delete-while-raising.html b/LayoutTests/http/tests/appcache/deferred-events-delete-while-raising.html new file mode 100644 index 0000000..902d3a8 --- /dev/null +++ b/LayoutTests/http/tests/appcache/deferred-events-delete-while-raising.html @@ -0,0 +1,35 @@ +<html manifest="THIS_FILE_DOES_NOT_EXIST.manifest"> +<head> + <script src="THIS_FILE_DOES_NOT_EXIST.js" type="text/javascript"></script> + <script type="text/javascript"> + var isParentFrame = window == window.top; + + if (isParentFrame) { + if (window.layoutTestController) { + layoutTestController.dumpAsText() + layoutTestController.waitUntilDone(); + } + + window.onmessage = function() { + document.getElementById('result').innerHTML = "SUCCESS"; + if (window.layoutTestController) + layoutTestController.notifyDone(); + } + } else { + window.applicationCache.onchecking = function() { + parent.postMessage("hello", "*"); + parent.killChildFrame(); + } + } + + function killChildFrame() { + document.body.removeChild(document.getElementsByTagName("iframe")[0]); + } + </script> +</head> +<body> +<p>Test the destruction of an iframe while deferred events are being raised does not crash the system.</p> +<div id="result">FAILURE</div> +<iframe src="deferred-events-delete-while-raising.html"></iframe> +</body> +</html> |