Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <script src="../../resources/js-test.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 |
| 14 <section style="height: 100px; width: 100px; overflow: scroll;"></section> | 14 <section style="height: 100px; width: 100px; overflow: scroll;"> |
| 15 <div style="height: 500px; width: 500px;"/> | |
| 16 </section> | |
| 15 | 17 |
| 16 <div tabindex="1"> | 18 <div tabindex="1"> |
| 17 <header style="height: 100px; width: 100px; overflow: scroll;"></header> | 19 <header style="height: 100px; width: 100px; overflow: scroll;"></header> |
| 18 </div> | 20 </div> |
| 19 | 21 |
| 20 <span contenteditable> | 22 <span contenteditable> |
| 21 <u style="height: 100px; width: 100px; overflow: scroll; display: block;"></ u> | 23 <u style="height: 100px; width: 100px; overflow: scroll; display: block;"></ u> |
| 22 </span> | 24 </span> |
| 23 | 25 |
| 24 <textarea rows="5"> | 26 <textarea rows="5"> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 }); | 112 }); |
| 111 | 113 |
| 112 test("Disabled form controls should not move the focus", function() { | 114 test("Disabled form controls should not move the focus", function() { |
| 113 document.querySelector("input").focus(); | 115 document.querySelector("input").focus(); |
| 114 document.querySelector("select").disabled = true; | 116 document.querySelector("select").disabled = true; |
| 115 clickVerticalScrollbar("select"); | 117 clickVerticalScrollbar("select"); |
| 116 shouldBeEqualToString("document.activeElement.tagName", "INPUT"); | 118 shouldBeEqualToString("document.activeElement.tagName", "INPUT"); |
| 117 }); | 119 }); |
| 118 </script> | 120 </script> |
| 119 | 121 |
| 122 | |
|
bokan
2016/11/03 11:53:19
Nit: remove space
| |
| OLD | NEW |