1 <html manifest="http://localhost:8000/appcache/resources/empty.manifest"> 2 <p>Test that a different origin manifest is completely ignored.</p> 3 <div id=result></div> 4 <script> 5 if (window.layoutTestController) { 6 layoutTestController.waitUntilDone(); 7 layoutTestController.dumpAsText(); 8 } 9 10 var result = document.getElementById("result"); 11 var originalResult = result.innerHTML; 12 13 try { 14 applicationCache.onchecking = function() { result.innerHTML += "FAIL: onchecking called. " } 15 applicationCache.onerror = function() { result.innerHTML += "FAIL: onerror called" } 16 applicationCache.onnoupdate = function() { result.innerHTML += "FAIL: onnoupdate called" } 17 applicationCache.ondownloading = function() { result.innerHTML += "FAIL: ondownloading called" } 18 applicationCache.onprogress = function() { result.innerHTML += "FAIL: onprogress called" } 19 applicationCache.onupdateready = function() { result.innerHTML += "FAIL: onupdateready called" } 20 applicationCache.oncached = function() { result.innerHTML += "FAIL: oncached called" } 21 applicationCache.onobsolete = function() { result.innerHTML += "FAIL: onobsolete called" } 22 } catch (ex) { 23 result.innerHTML += "FAIL: " + ex; 24 } 25 function done() 26 { 27 if (result.innerHTML == originalResult) 28 result.innerHTML = applicationCache.status == applicationCache.UNCACHED ? "PASS" : "FAIL: cache status in not UNCACHED"; 29 30 if (window.layoutTestController) 31 layoutTestController.notifyDone(); 32 } 33 34 setTimeout(done, 100); 35 </script> 36 </html> 37