diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/deferred-events.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/deferred-events.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/deferred-events.html b/LayoutTests/http/tests/appcache/deferred-events.html new file mode 100644 index 0000000..ba9cf83 --- /dev/null +++ b/LayoutTests/http/tests/appcache/deferred-events.html @@ -0,0 +1,24 @@ +<html manifest="THIS_FILE_DOES_NOT_EXIST.manifest"> +<head> + <script type="text/javascript"> + var onloadHasBeenCalled = false; + + if (window.layoutTestController) { + layoutTestController.dumpAsText() + layoutTestController.waitUntilDone(); + } + + window.applicationCache.onchecking = function() { + if (onloadHasBeenCalled) + document.getElementById('result').innerHTML = "SUCCESS" + if (window.layoutTestController) + layoutTestController.notifyDone(); + } + </script> + <script src="THIS_FILE_DOES_NOT_EXIST.js" type="text/javascript"></script> +</head> +<body onload="onloadHasBeenCalled = true"> +Test that AppicationCache events are deferred until after onload has been fired. +<div id="result">FAILURE</div> +</body> +</html> |