Index: LayoutTests/http/tests/appcache/fallback.html |
diff --git a/LayoutTests/http/tests/appcache/fallback.html b/LayoutTests/http/tests/appcache/fallback.html |
index 20ad0e2c5ad4c1b009d50fc4ee477bb21cabda76..663ba9fae9f329926fbbfa239ec9e4d1bc6e4d6f 100644 |
--- a/LayoutTests/http/tests/appcache/fallback.html |
+++ b/LayoutTests/http/tests/appcache/fallback.html |
@@ -120,11 +120,18 @@ function test4() |
var ifr = document.createElement("iframe"); |
ifr.setAttribute("src", nonexistentURL); |
+ ifr.setAttribute("onload", "test5()"); |
document.body.appendChild(ifr); |
} |
+var test5_calls = 0; |
+ |
function test5() |
{ |
+ test5_calls++; |
+ if (test5_calls == 1) { |
+ return; |
+ } |
if (!/Hello, World/.test(window.frames[0].document.documentElement.innerHTML)) { |
log("FAIL: Fallback URL was not honored for main resource"); |
hadError = true; |