• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html manifest="resources/maxsize.manifest">
2<body>
3<script>
4    if (window.layoutTestController) {
5        layoutTestController.setAppCacheMaximumSize(10 * 1024);
6        layoutTestController.dumpAsText();
7        layoutTestController.waitUntilDone();
8    }
9
10    function log(message)
11    {
12        document.getElementById("result").innerHTML += message + "<br>";
13        if (window.layoutTestController) {
14            layoutTestController.setAppCacheMaximumSize(100 * 1024 * 1024);
15            layoutTestController.notifyDone();
16        }
17    }
18
19    applicationCache.onerror = function() { log("SUCCESS"); }
20    applicationCache.oncached = function() { log("FAIL: received unexpected cached event"); }
21    applicationCache.onnoupdate = function() { log("FAIL: received unexpected onnoupdate event"); }
22    applicationCache.onupdateready = function() { log("FAIL: received unexpected onupdateready event"); }
23</script>
24
25<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>
26<div id=result></div>
27</body>
28</html>
29