Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / resources / cross-origin-iframe-for-appcache-allowed.html
blob219db0bec96c130e0853af13f49870ba596db449
1 <html manifest="manifest-for-appcache-allowed.manifest">
2 <head>
3 <script>
4 function complete() {
5 document.write('Cache found');
6 cleanup();
9 function timedOut() {
10 try {
11 applicationCache.update();
12 timer = setTimeout(cleanup, 5000);
13 } catch (e) {
14 document.write('Cache not found');
15 cleanup();
19 function cleanup() {
20 clearTimeout(timer);
21 top.postMessage('done', '*');
24 try {
25 timer = setTimeout(timedOut, 5000);
26 applicationCache.addEventListener('noupdate', complete, false);
27 applicationCache.addEventListener('cached', complete, false);
28 } catch (e) {
29 document.write('Cache not found');
30 cleanup();
32 </script>
33 </head>
34 <body>
35 <img src="abe.png">
36 </body>
37 </head>