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

Unified Diff: LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic.html

Issue 23903029: [HTML Imports] Employ load/error events to stabilize polling-based tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 3 months 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
Index: LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic.html
diff --git a/LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic.html b/LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic.html
index 40d4cab0250c872cad485bb7988f046c40d61012..03be090d53dea10bc5fd6c2519aa4283aee6ced0 100644
--- a/LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic.html
+++ b/LayoutTests/http/tests/htmlimports/import-script-block-crossorigin-dynamic.html
@@ -17,21 +17,9 @@ function testAndDone()
finishJSTest();
}
-var retryCount = 0;
-
// This should be called run-check.js
function check()
{
- if (!document.corsExternalScriptForLocalhostHasRun) {
- retryCount++;
- if (10 < retryCount) {
- console.log("FAIL: Retried too many times.");
- return finishJSTest();
- }
-
- return setTimeout(check, 100);
- }
-
testAndDone();
}

Powered by Google App Engine
This is Rietveld 408576698