diff options
author | Ben Murdoch <benm@google.com> | 2010-05-11 18:35:50 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-05-14 10:23:05 +0100 |
commit | 21939df44de1705786c545cd1bf519d47250322d (patch) | |
tree | ef56c310f5c0cdc379c2abb2e212308a3281ce20 /LayoutTests/http/tests/appcache/credential-url.html | |
parent | 4ff1d8891d520763f17675827154340c7c740f90 (diff) | |
download | external_webkit-21939df44de1705786c545cd1bf519d47250322d.zip external_webkit-21939df44de1705786c545cd1bf519d47250322d.tar.gz external_webkit-21939df44de1705786c545cd1bf519d47250322d.tar.bz2 |
Merge Webkit at r58956: Initial merge by Git.
Change-Id: I1d9fb60ea2c3f2ddc04c17a871acdb39353be228
Diffstat (limited to 'LayoutTests/http/tests/appcache/credential-url.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/credential-url.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/credential-url.html b/LayoutTests/http/tests/appcache/credential-url.html new file mode 100644 index 0000000..b6c7eec --- /dev/null +++ b/LayoutTests/http/tests/appcache/credential-url.html @@ -0,0 +1,28 @@ +<html manifest="http://user:password@127.0.0.1:8000/appcache/resources/empty.manifest"> +<body> +<p>Test that application cache doesn't block loading resources from the same origin with credential.</p> +<script> +if (window.layoutTestController) { + layoutTestController.dumpAsText(); + layoutTestController.waitUntilDone(); +} + +function test() +{ + var ifr = document.createElement("iframe"); + ifr.setAttribute("src", "javascript:parent.success(), 'PASS'"); + document.body.appendChild(ifr); +} + +function success() +{ + document.body.replaceChild(document.createTextNode("SUCCESS"), document.getElementsByTagName("iframe")[0]); + if (window.layoutTestController) + layoutTestController.notifyDone(); +} + +applicationCache.oncached = test; +applicationCache.onnoupdate = test; +</script> +<body> +</html> |