Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / submit-change-fragment.html
bloba310c77504b76c050f60c793c943d4ecfc1df645
1 <html>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
8 function runTest() {
9 if (document.location.href.indexOf("n=v") == -1) {
10 document.location.search = "?n=v";
11 return;
13 document.forms.f.action="#firstaction";
14 document.forms.f.submit();
15 document.forms.f.action="#secondaction";
18 function hashChanged() {
19 if (document.location.href.indexOf("firstaction") != -1) {
20 document.getElementById("console").innerHTML="PASS";
21 if (window.testRunner)
22 testRunner.notifyDone();
27 </script>
28 <body onhashchange="hashChanged();" onload="runTest();">
29 <div><a href="https://bugs.webkit.org/show_bug.cgi?id=20342">https://bugs.webkit.org/show_bug.cgi?id=20342</a></div>
30 <p>Test that when the form method is get, and the form action is the same as the current location url, but with different fragment, we do not reload the page, and the onload handler is not called again.</p>
31 <p>Also test that changing the form action after the form was submitted has no effect.</p>
33 <form name="f" method="GET" action="#action"><input name="n" value="v"></form>
34 <div id="console">FAIL</div>
35 <script>
36 </script>
37 </body>
38 </html>