Fix flakiness of fast/forms/submit-change-fragment.html.
The test timed out in the following case: 1. document.location.search = "?n=v" requests a navigation. 2. Before the navigation happens, onload handler runTest() is executed. 3. document.forms.f.submit() navigates to ".../submit-change-fragment.html?n=v#firstaction" 4. Because the original document was ".../submit-change-fragment.html", onhashchange handler is NOT called. 5. No one calls testRunner.notifyDone(). This CL moves "?n=v" setting code to runTest(), and do early return to avoid the form submission without "?n=v". BUG=521860 Review URL: https://codereview.chromium.org/1302703002 git-svn-id: svn://svn.chromium.org/blink/trunk@200798 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment