OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 | 4 |
5 <style> | 5 <style> |
6 /* Float everything so they fit inside the viewport for using eventSender to
click */ | 6 /* Float everything so they fit inside the viewport for using eventSender to
click */ |
7 section, footer, span, textarea, select { float: left; } | 7 section, footer, span, textarea, select { float: left; } |
8 </style> | 8 </style> |
9 | 9 |
10 <footer> | 10 <footer> |
11 <input> | 11 <input> |
12 </footer> | 12 </footer> |
13 | 13 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 }); | 110 }); |
111 | 111 |
112 test("Disabled form controls should not move the focus", function() { | 112 test("Disabled form controls should not move the focus", function() { |
113 document.querySelector("input").focus(); | 113 document.querySelector("input").focus(); |
114 document.querySelector("select").disabled = true; | 114 document.querySelector("select").disabled = true; |
115 clickVerticalScrollbar("select"); | 115 clickVerticalScrollbar("select"); |
116 shouldBeEqualToString("document.activeElement.tagName", "INPUT"); | 116 shouldBeEqualToString("document.activeElement.tagName", "INPUT"); |
117 }); | 117 }); |
118 </script> | 118 </script> |
119 | 119 |
OLD | NEW |