OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body onload="runTest()"> | 3 <body onload="runTest()"> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script src="resources/common.js"></script> | 5 <script src="resources/common.js"></script> |
6 <form action="resources/success.txt" method="GET" target="failFrame"> | 6 <form action="resources/success.txt" method="GET" target="failFrame"> |
7 <input type="submit" id="button" formtarget="passFrame"> | 7 <input type="submit" id="button" formtarget="passFrame"> |
8 </form> | 8 </form> |
9 <script> | 9 <script> |
10 description("Test for the formtarget attribute in an input tag."); | 10 description("Test for the formtarget attribute in an input tag."); |
11 | 11 |
12 function runTest() { | 12 function runTest() { |
13 if (window.testRunner) { | 13 if (window.testRunner) { |
14 testRunner.setAllowUniversalAccessFromFileURLs(true); | 14 testRunner.setAllowUniversalAccessFromFileURLs(true); |
(...skipping 17 matching lines...) Expand all Loading... |
32 testFailed("The formtarget attribute was not used."); | 32 testFailed("The formtarget attribute was not used."); |
33 isSuccessfullyParsed(); | 33 isSuccessfullyParsed(); |
34 if (window.testRunner) | 34 if (window.testRunner) |
35 testRunner.notifyDone(); | 35 testRunner.notifyDone(); |
36 } | 36 } |
37 </script> | 37 </script> |
38 <iframe src="about:blank" id="pass" name="passFrame" onload="passFrameLoaded()">
</iframe> | 38 <iframe src="about:blank" id="pass" name="passFrame" onload="passFrameLoaded()">
</iframe> |
39 <iframe src="about:blank" id="fail" name="failFrame" onload="failFrameLoaded()">
</iframe> | 39 <iframe src="about:blank" id="fail" name="failFrame" onload="failFrameLoaded()">
</iframe> |
40 </body> | 40 </body> |
41 </html> | 41 </html> |
OLD | NEW |