• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<div></div>
3<script>
4if (window.layoutTestController) {
5    layoutTestController.dumpAsText();
6    layoutTestController.waitUntilDone();
7}
8
9var div = document.getElementsByTagName("div")[0];
10div.innerHTML = '<html manifest="resources/insert-html-element-with-manifest.manifest">'
11
12window.onload = function()
13{
14    applicationCache.oncached = function() {
15        alert("FAIL: appcache cached");
16    }
17    applicationCache.onnoupdate = function() {
18        alert("FAIL: appcache noupdate");
19    }
20    applicationCache.onerror = function() {
21        alert("FAIL: appcache error");
22    }
23
24    setTimeout(function() {
25        document.write("DONE. Passed if there were no alerts displayed.");
26        if (window.layoutTestController)
27            layoutTestController.notifyDone();
28    }, 100);
29}
30</script>
31