dom/tests/mochitest/ajax/offline/test_offlineIFrame.html

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:5da6579f4b99
1 <html xmlns="http://www.w3.org/1999/xhtml" manifest="http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest">
2 <head>
3 <title>offline iframe test</title>
4
5 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
6 <script type="text/javascript" src="/tests/dom/tests/mochitest/ajax/offline/offlineTests.js"></script>
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
8
9 <script type="text/javascript">
10
11
12 function checkEntries() {
13 var entries = [
14 // The manifest itself should be in the cache
15 ["http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest", true],
16
17 // The entries from the manifest should be in the cache
18 ["http://mochi.test:8888/tests/SimpleTest/SimpleTest.js", true],
19 ["http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/offlineTests.js", true]
20 ];
21 OfflineTest.checkCacheEntries(entries, function() { window.frames["offlineChild"].doneLoading(); });
22 }
23
24 function childFinished()
25 {
26 OfflineTest.teardownAndFinish();
27 }
28
29 if (OfflineTest.setup()) {
30 applicationCache.onerror = OfflineTest.failEvent;
31
32 applicationCache.oncached = OfflineTest.priv(checkEntries);
33 }
34
35 SimpleTest.waitForExplicitFinish();
36
37 </script>
38
39 </head>
40
41 <body>
42
43 <iframe name="offlineChild" src="offlineChild.html"></iframe>
44
45 </body>
46 </html>

mercurial