OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script> | 4 <script> |
5 function test() { | 5 function test() { |
6 var form = document.getElementById('form'); | 6 var form = document.getElementById('form'); |
7 var field = document.getElementById('field'); | 7 var field = document.getElementById('field'); |
8 | 8 |
9 shouldBeTrue("('autocomplete' in form)"); | 9 shouldBeTrue("('autocomplete' in form)"); |
10 shouldBeTrue("('autocomplete' in field)"); | 10 shouldBeTrue("('autocomplete' in field)"); |
11 | 11 |
12 shouldBeNull("form.getAttribute('autocomplete')"); | 12 shouldBeNull("form.getAttribute('autocomplete')"); |
13 shouldBeNull("field.getAttribute('autocomplete')"); | 13 shouldBeNull("field.getAttribute('autocomplete')"); |
(...skipping 14 matching lines...) Expand all Loading... |
28 </script> | 28 </script> |
29 </head> | 29 </head> |
30 <body onload="test()"> | 30 <body onload="test()"> |
31 This tests that the 'autocomplete' attribute of form and input elements is b
ound to a JavaScript property. | 31 This tests that the 'autocomplete' attribute of form and input elements is b
ound to a JavaScript property. |
32 <form id="form"> | 32 <form id="form"> |
33 <input type="text" id="field" /> | 33 <input type="text" id="field" /> |
34 </form> | 34 </form> |
35 <div id="console"></div> | 35 <div id="console"></div> |
36 </body> | 36 </body> |
37 </html> | 37 </html> |
OLD | NEW |