blob: ba9cf83ab9b6a71ffeec9a9d5889d7af205c672d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>
|