Commit 206d78f2 authored by ap@webkit.org's avatar ap@webkit.org

Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=25749
        Add a test for non-same origin appcache manifest URL

        * http/tests/appcache/different-origin-manifest-expected.txt: Added.
        * http/tests/appcache/different-origin-manifest.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5fc5183b
2009-05-13 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=25749
Add a test for non-same origin appcache manifest URL
* http/tests/appcache/different-origin-manifest-expected.txt: Added.
* http/tests/appcache/different-origin-manifest.html: Added.
2009-05-12 Roland Steiner <rolandsteiner@google.com>
Reviewed by Eric Seidel.
Test that a different origin manifest is completely ignored.
PASS
<html manifest="http://localhost:8000/appcache/resources/empty.manifest">
<p>Test that a different origin manifest is completely ignored.</p>
<div id=result></div>
<script>
if (window.layoutTestController) {
layoutTestController.waitUntilDone();
layoutTestController.dumpAsText();
}
var result = document.getElementById("result");
var originalResult = result.innerHTML;
try {
applicationCache.onchecking = function() { result.innerHTML += "FAIL: onchecking called. " }
applicationCache.onerror = function() { result.innerHTML += "FAIL: onerror called" }
applicationCache.onnoupdate = function() { result.innerHTML += "FAIL: onnoupdate called" }
applicationCache.ondownloading = function() { result.innerHTML += "FAIL: ondownloading called" }
applicationCache.onprogress = function() { result.innerHTML += "FAIL: onprogress called" }
applicationCache.onupdateready = function() { result.innerHTML += "FAIL: onupdateready called" }
applicationCache.oncached = function() { result.innerHTML += "FAIL: oncached called" }
applicationCache.onobsolete = function() { result.innerHTML += "FAIL: onobsolete called" }
} catch (ex) {
result.innerHTML += "FAIL: " + ex;
}
function done()
{
if (result.innerHTML == originalResult)
result.innerHTML = applicationCache.status == applicationCache.UNCACHED ? "PASS" : "FAIL: cache status in not UNCACHED";
if (window.layoutTestController)
layoutTestController.notifyDone();
}
setTimeout(done, 100);
</script>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment