Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / formtarget-attribute-input-2.html
blob7a50df2c1705a93922ea256aac179ee364bd503b
1 <!DOCTYPE html>
2 <html>
3 <body onload="runTest()">
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/common.js"></script>
6 <form action="resources/success.txt" method="GET" target="failFrame">
7 <input type="submit" id="button" formtarget="passFrame">
8 </form>
9 <script>
10 description("Test for the formtarget attribute in an input tag.");
12 function runTest() {
13 if (window.testRunner) {
14 testRunner.setAllowUniversalAccessFromFileURLs(true);
15 testRunner.waitUntilDone();
17 clickElement(document.getElementById('button'));
20 function passFrameLoaded() {
21 if (document.getElementById('pass').contentDocument.URL == "about:blank")
22 return;
23 testPassed("The formtarget attribute was successfully used.");
24 isSuccessfullyParsed();
25 if (window.testRunner)
26 testRunner.notifyDone();
29 function failFrameLoaded() {
30 if (document.getElementById('fail').contentDocument.URL == "about:blank")
31 return;
32 testFailed("The formtarget attribute was not used.");
33 isSuccessfullyParsed();
34 if (window.testRunner)
35 testRunner.notifyDone();
37 </script>
38 <iframe src="about:blank" id="pass" name="passFrame" onload="passFrameLoaded()"></iframe>
39 <iframe src="about:blank" id="fail" name="failFrame" onload="failFrameLoaded()"></iframe>
40 </body>
41 </html>