Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / appcache / insert-html-element-with-manifest-2.html
blob4539ca6dd0b900f5bae2248538b2cd5c1ae4140c
1 <html>
2 <div></div>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 var div = document.getElementsByTagName("div")[0];
10 div.innerHTML = '<html manifest="resources/insert-html-element-with-manifest.manifest">'
12 window.onload = function()
14 applicationCache.oncached = function() {
15 alert("FAIL: appcache cached");
17 applicationCache.onnoupdate = function() {
18 alert("FAIL: appcache noupdate");
20 applicationCache.onerror = function() {
21 alert("FAIL: appcache error");
24 setTimeout(function() {
25 document.write("DONE. Passed if there were no alerts displayed.");
26 if (window.testRunner)
27 testRunner.notifyDone();
28 }, 100);
30 </script>