• tkent@chromium.org's avatar
    Fix flakiness of fast/forms/submit-change-fragment.html. · a17a21df
    tkent@chromium.org authored
    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
    a17a21df
submit-change-fragment.html 1.19 KB