blob: 8f4e8552340ebe3331d46200ef386bbca4d9e1f6 (
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
25
26
27
28
|
<html manifest="resources/maxsize.manifest">
<body>
<script>
if (window.layoutTestController) {
layoutTestController.setAppCacheMaximumSize(10 * 1024);
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function log(message)
{
document.getElementById("result").innerHTML += message + "<br>";
if (window.layoutTestController) {
layoutTestController.setAppCacheMaximumSize(100 * 1024 * 1024);
layoutTestController.notifyDone();
}
}
applicationCache.onerror = function() { log("SUCCESS"); }
applicationCache.oncached = function() { log("FAIL: received unexpected cached event"); }
applicationCache.onnoupdate = function() { log("FAIL: received unexpected onnoupdate event"); }
applicationCache.onupdateready = function() { log("FAIL: received unexpected onupdateready event"); }
</script>
<p>Cache a manifest that contains a resource that is too large to fit. The layout test controller sets a maximum size of 10KB for the application cache database file.</p>
<div id=result></div>
</body>
</html>
|