Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / form-submission-cancelable.html
blob7379bdd48ceac5b6baa15d2812e1c4ddb972ffba
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <form method="GET" target="target" action="data:text/html,a">
8 <input name="query" value="AAA" />
9 <input type="submit" id="submitButton"/>
10 </form>
11 <form method="GET" target="target1" action="data:text/html,b">
12 <input name="query1" value="AAA" />
13 <input type="submit" id="submitButton1"/>
14 </form>
15 <iframe id="target" name="target"></iframe>
16 <iframe id="target1" name="target1"></iframe>
17 <script>
18 description('Test that form submit within onsubmit event handlers are not delayed and sends the form data when invoked');
20 document.forms[0].onsubmit = function (event) {
21 document.forms[0].submit();
22 document.forms[0].children.query.value = 'BBB';
23 return false;
26 document.forms[1].onsubmit = function (event) {
27 document.forms[1].submit();
28 document.forms[1].children.query1.value = 'BBB';
29 return true;
32 window.onload = function() {
33 document.getElementById('target').onload = function(event) {
34 // This should return back query AAA
35 shouldBeEqualToString('event.target.contentWindow.location.search', '?query=AAA');
36 document.getElementById('submitButton1').click();
39 document.getElementById('target1').onload = function(event) {
40 // This should return back query BBB
41 shouldBeEqualToString('event.target.contentWindow.location.search', '?query1=BBB');
42 finishJSTest();
45 document.getElementById('submitButton').click();
48 if (window.testRunner)
49 window.jsTestIsAsync = true;
50 </script>
51 </body>
52 </html>