| OLD | NEW |
| (Empty) |
| 1 <html manifest="resources/maxsize.manifest"> | |
| 2 <body> | |
| 3 <script> | |
| 4 if (window.testRunner) { | |
| 5 testRunner.setAppCacheMaximumSize(10 * 1024); | |
| 6 testRunner.dumpAsText(); | |
| 7 testRunner.waitUntilDone(); | |
| 8 } | |
| 9 | |
| 10 function log(message) | |
| 11 { | |
| 12 document.getElementById("result").innerHTML += message + "<br>"; | |
| 13 if (window.testRunner) { | |
| 14 testRunner.setAppCacheMaximumSize(100 * 1024 * 1024); | |
| 15 testRunner.notifyDone(); | |
| 16 } | |
| 17 } | |
| 18 | |
| 19 applicationCache.onerror = function() { log("SUCCESS"); } | |
| 20 applicationCache.oncached = function() { log("FAIL: received unexpected cach
ed event"); } | |
| 21 applicationCache.onnoupdate = function() { log("FAIL: received unexpected on
noupdate 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 layou
t test controller sets a maximum size of 10KB for the application cache database
file.</p> | |
| 26 <div id=result></div> | |
| 27 </body> | |
| 28 </html> | |
| OLD | NEW |