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