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

Unified Diff: LayoutTests/fast/forms/submit-change-fragment.html

Issue 1302703002: Fix flakiness of fast/forms/submit-change-fragment.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/submit-change-fragment.html
diff --git a/LayoutTests/fast/forms/submit-change-fragment.html b/LayoutTests/fast/forms/submit-change-fragment.html
index fcfb66192a2e1d92a92eef2911ce1856fc4b6849..a310c77504b76c050f60c793c943d4ecfc1df645 100644
--- a/LayoutTests/fast/forms/submit-change-fragment.html
+++ b/LayoutTests/fast/forms/submit-change-fragment.html
@@ -5,10 +5,11 @@ if (window.testRunner) {
testRunner.waitUntilDone();
}
-if (document.location.href.indexOf("n=v") == -1)
- document.location.search = "?n=v";
-
function runTest() {
+ if (document.location.href.indexOf("n=v") == -1) {
+ document.location.search = "?n=v";
+ return;
+ }
document.forms.f.action="#firstaction";
document.forms.f.submit();
document.forms.f.action="#secondaction";
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698