OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../../resources/js-test.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 <script src="resources/common-setrangetext.js"></script> | 6 <script src="resources/common-setrangetext.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <script> | 9 <script> |
10 // TODO(tkent): This should be merged to imported/wpt/html/ | 10 // TODO(tkent): This should be merged to external/wpt/html/ |
11 // semantics/forms/textfieldselection/textfieldselection-setRangeText.html | 11 // semantics/forms/textfieldselection/textfieldselection-setRangeText.html |
12 description("Test setRangeText() method on common input types."); | 12 description("Test setRangeText() method on common input types."); |
13 | 13 |
14 runTestsShouldPass("input", { type: "password" }); | 14 runTestsShouldPass("input", { type: "password" }); |
15 runTestsShouldPass("input", { type: "tel" }); | 15 runTestsShouldPass("input", { type: "tel" }); |
16 runTestsShouldPass("input", { type: "text" }); | 16 runTestsShouldPass("input", { type: "text" }); |
17 runTestsShouldPass("input", { type: "text", dir: "rtl" }); | 17 runTestsShouldPass("input", { type: "text", dir: "rtl" }); |
18 runTestsShouldPass("input", { type: "url" }); | 18 runTestsShouldPass("input", { type: "url" }); |
19 | 19 |
20 runTestsShouldFail("input", { type: "button" }); | 20 runTestsShouldFail("input", { type: "button" }); |
21 runTestsShouldFail("input", { type: "checkbox" }); | 21 runTestsShouldFail("input", { type: "checkbox" }); |
22 runTestsShouldFail("input", { type: "email" }); | 22 runTestsShouldFail("input", { type: "email" }); |
23 runTestsShouldFail("input", { type: "radio" }); | 23 runTestsShouldFail("input", { type: "radio" }); |
24 runTestsShouldFail("input", { type: "reset" }); | 24 runTestsShouldFail("input", { type: "reset" }); |
25 runTestsShouldFail("input", { type: "submit" }); | 25 runTestsShouldFail("input", { type: "submit" }); |
26 | 26 |
27 </script> | 27 </script> |
28 </body> | 28 </body> |
29 </html> | 29 </html> |
OLD | NEW |