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 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description('This tests that deselecting an option won't cause unnecessary
scrolling.'); | 10 description('This tests that deselecting an option won't cause unnecessary
scrolling.'); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 var sl = document.getElementById('sl'); | 47 var sl = document.getElementById('sl'); |
48 sl.focus(); | 48 sl.focus(); |
49 document.execCommand("SelectAll"); | 49 document.execCommand("SelectAll"); |
50 sl.scrollTop = Math.floor(sl.offsetHeight / sl.size) * 4 + 6; | 50 sl.scrollTop = Math.floor(sl.offsetHeight / sl.size) * 4 + 6; |
51 var scrollBeforeClick = sl.scrollTop; | 51 var scrollBeforeClick = sl.scrollTop; |
52 mouseDownOnSelect("sl", 3, "addSelectionKey"); | 52 mouseDownOnSelect("sl", 3, "addSelectionKey"); |
53 shouldBe('sl.scrollTop', 'scrollBeforeClick'); | 53 shouldBe('sl.scrollTop', 'scrollBeforeClick'); |
54 shouldBe('selectionPattern(sl)', '"11111110111"'); | 54 shouldBe('selectionPattern(sl)', '"11111110111"'); |
55 </script> | 55 </script> |
56 <script src="../../fast/js/resources/js-test-post.js"></script> | |
57 </body> | 56 </body> |
58 </html> | 57 </html> |
OLD | NEW |