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