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"; |