summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/appcache/resources/different-https-origin-resource.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/http/tests/appcache/resources/different-https-origin-resource.html')
-rw-r--r--LayoutTests/http/tests/appcache/resources/different-https-origin-resource.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/LayoutTests/http/tests/appcache/resources/different-https-origin-resource.html b/LayoutTests/http/tests/appcache/resources/different-https-origin-resource.html
index 674706a..7c24b07 100644
--- a/LayoutTests/http/tests/appcache/resources/different-https-origin-resource.html
+++ b/LayoutTests/http/tests/appcache/resources/different-https-origin-resource.html
@@ -20,8 +20,14 @@ function error()
hadError = true;
finish();
}
+function progressHandler(e)
+{
+ // The only resource listed in the manifest file is in a different https origin and should be skipped.
+ if (e.loaded != 0 || e.total != 0)
+ fail();
+}
-applicationCache.onprogress = function() { fail(); }
+applicationCache.onprogress = progressHandler;
applicationCache.onnoupdate = function() { finish(); }
applicationCache.oncached = function() { finish(); }
applicationCache.onerror = function() { error(); }