OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>required attribute JS set</title> | 4 <title>required attribute JS set</title> |
5 <script src="../../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../../fast/js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 <input id="input" name="victim" /> | 10 <input id="input" name="victim" /> |
(...skipping 20 matching lines...) Expand all Loading... |
31 v[0].required = true; | 31 v[0].required = true; |
32 v[1].required = true; | 32 v[1].required = true; |
33 v[2].required = true; | 33 v[2].required = true; |
34 | 34 |
35 debug("After set:"); | 35 debug("After set:"); |
36 shouldBeTrue('requiredFor("input")'); | 36 shouldBeTrue('requiredFor("input")'); |
37 shouldBeTrue('requiredFor("textarea")'); | 37 shouldBeTrue('requiredFor("textarea")'); |
38 shouldBeTrue('requiredFor("select")'); | 38 shouldBeTrue('requiredFor("select")'); |
39 debug(""); | 39 debug(""); |
40 </script> | 40 </script> |
41 <script src="../../fast/js/resources/js-test-post.js"></script> | |
42 </body> | 41 </body> |
43 </html> | 42 </html> |
OLD | NEW |