diff options
author | Steve Block <steveblock@google.com> | 2011-05-25 19:08:45 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2011-06-08 13:51:31 +0100 |
commit | 2bde8e466a4451c7319e3a072d118917957d6554 (patch) | |
tree | 28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /LayoutTests/http/tests/appcache/resources/origin-delete-iframe.html | |
parent | 6939c99b71d9372d14a0c74a772108052e8c48c8 (diff) | |
download | external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2 |
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'LayoutTests/http/tests/appcache/resources/origin-delete-iframe.html')
-rw-r--r-- | LayoutTests/http/tests/appcache/resources/origin-delete-iframe.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/appcache/resources/origin-delete-iframe.html b/LayoutTests/http/tests/appcache/resources/origin-delete-iframe.html new file mode 100644 index 0000000..e2565f7 --- /dev/null +++ b/LayoutTests/http/tests/appcache/resources/origin-delete-iframe.html @@ -0,0 +1,20 @@ +<html manifest="origin-delete-iframe.manifest"> +<script> +// iframe-1 is expected to succeed. +applicationCache.oncached = function() { parent.postMessage("PASS - cached iframe-1", "*"); }; +applicationCache.onerror = function() { parent.postMessage("FAIL - error caching iframe-1, expected this to succeed", "*"); }; +applicationCache.onnoupdate = function() { parent.postMessage("FAIL - no update iframe-1, all caches should have been deleted before this test", "*"); }; + + +function frameMessageReceived(event) { + if (event.data === "appcache_status") { + parent.postMessage("appcache_status=" + applicationCache.status, "*"); + } else { + parent.postMessage("FAIL - unrecognized message", "*"); + } +} + +window.addEventListener("message", frameMessageReceived, false); + +</script> +</html> |