Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: LayoutTests/http/tests/appcache/fallback.html

Issue 720963002: Fix appcache/fallback test race exposed by the Blink Scheduler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Check onupdate get's called. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/platform/linux/http/tests/appcache/fallback-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | LayoutTests/platform/linux/http/tests/appcache/fallback-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698