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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <html xmlns="http://www.w3.org/1999/xhtml" manifest="http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/fallback.cacheManifest">
michael@0 2 <head>
michael@0 3 <title>Fallback on different origin redirect 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 function manifestUpdated()
michael@0 11 {
michael@0 12 fallbackFrame.location = "http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/namespace1/redirectToDifferentOrigin.sjs";
michael@0 13 // Invokes load of fallback.html
michael@0 14 }
michael@0 15
michael@0 16 function onFallbackLoad(fallbackIdentification)
michael@0 17 {
michael@0 18 OfflineTest.is(fallbackIdentification, 1, "Got correct fallback for namespace1 (2)");
michael@0 19
michael@0 20 applicationCache.onerror = function() {}; // the update invoked by the iframe will finish after we discard the cache, ignore error
michael@0 21 OfflineTest.teardownAndFinish();
michael@0 22 }
michael@0 23
michael@0 24 SimpleTest.waitForExplicitFinish();
michael@0 25
michael@0 26 if (OfflineTest.setup()) {
michael@0 27 applicationCache.onerror = OfflineTest.failEvent;
michael@0 28 applicationCache.onupdateready = OfflineTest.failEvent;
michael@0 29 applicationCache.oncached = OfflineTest.priv(manifestUpdated);
michael@0 30 }
michael@0 31
michael@0 32 </script>
michael@0 33
michael@0 34 </head>
michael@0 35
michael@0 36 <body>
michael@0 37 <iframe name="fallbackFrame"></iframe>
michael@0 38 </body>
michael@0 39 </html>

mercurial