|
1 <html xmlns="http://www.w3.org/1999/xhtml" manifest="bypass.cacheManifest"> |
|
2 <head> |
|
3 <title>Bypass 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 class="testbody" type="text/javascript"> |
|
10 |
|
11 /** |
|
12 * This test defines manifest with namespace1/sub2 and namespace2 as bypass |
|
13 * namespaces. |
|
14 * When cache update finishes it loads a test body in an iframe. This iframe |
|
15 * refers four js scripts, some matching the namespace to bypass and some not. |
|
16 * Then checks that just expected scripts loads by calling a method of each |
|
17 * of the script. |
|
18 */ |
|
19 |
|
20 SimpleTest.waitForExplicitFinish(); |
|
21 |
|
22 if (OfflineTest.setup()) { |
|
23 // Load test body when cache update process finished. The test itself |
|
24 // continues at that file. |
|
25 applicationCache.oncached = function() |
|
26 { |
|
27 window.open("bypass.html"); |
|
28 } |
|
29 } |
|
30 |
|
31 </script> |
|
32 |
|
33 </head> |
|
34 |
|
35 <body> |
|
36 </body> |
|
37 </html> |