diff options
Diffstat (limited to 'LayoutTests/http/tests/appcache/whitelist-wildcard.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/whitelist-wildcard.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/whitelist-wildcard.html b/LayoutTests/http/tests/appcache/whitelist-wildcard.html new file mode 100644 index 0000000..01bc892 --- /dev/null +++ b/LayoutTests/http/tests/appcache/whitelist-wildcard.html @@ -0,0 +1,29 @@ +<html manifest="resources/whitelist-wildcard.manifest"> +<body> +<p>Test that online whitelist wildcard flag is implemented.</p> +<script> +if (window.layoutTestController) { + layoutTestController.dumpAsText(); + layoutTestController.waitUntilDone(); +} + +function test() +{ + try { + var req = new XMLHttpRequest; + req.open("GET", "resources/empty.txt", false); + req.send(); + document.body.appendChild(document.createTextNode("SUCCESS")); + } catch (ex) { + document.body.appendChild(document.createTextNode(ex)); + } + if (window.layoutTestController) + layoutTestController.notifyDone(); +} + +applicationCache.oncached = test; +applicationCache.onnoupdate = test; + +</script> +</body> +</html> |