mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
|
<html xmlns="http://www.w3.org/1999/xhtml" manifest="bypass.cacheManifest">
|
||
|
<head>
|
||
|
<title>Bypass test</title>
|
||
|
|
||
|
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||
|
<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>
|