OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="../resources/common.js"></script> |
| 6 </head> |
| 7 |
| 8 <body> |
| 9 |
| 10 <select id=select1 size=4> |
| 11 <option selected>a</option> |
| 12 <option>b</option> |
| 13 <option>c</option> |
| 14 <option>d</option> |
| 15 </select> |
| 16 |
| 17 <script> |
| 18 description('Test to check when select is element is disabled, value cannot be c
hanged by mouse.'); |
| 19 |
| 20 var select1 = document.getElementById('select1'); |
| 21 select1.focus(); |
| 22 shouldBeEqualToString('select1.value', 'a'); |
| 23 mouseMoveToIndexInListbox(1, 'select1'); |
| 24 eventSender.mouseDown(); |
| 25 eventSender.mouseUp(); |
| 26 shouldBeEqualToString('select1.value', 'b'); |
| 27 select1.disabled = true; |
| 28 mouseMoveToIndexInListbox(2, 'select1'); |
| 29 eventSender.mouseDown(); |
| 30 eventSender.mouseUp(); |
| 31 shouldBeEqualToString('select1.value', 'b'); |
| 32 |
| 33 </script> |
| 34 </body> |
| 35 </html> |
OLD | NEW |