Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select / listbox-disabled-no-autoscroll.html
blob2b0107319020d6edfacb7d6a71551a40c6c8141b
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/common.js"></script>
5 <style>
6 select {background-color: red; }
7 </style>
8 </head>
9 <body>
10 <select disabled id="test" size=4">
11 <option selected>foo1</option>
12 <option>foo2</option>
13 <option>foo3</option>
14 <option>foo4</option>
15 <option>foo5</option>
16 </select>
18 <div id="result">Success if selection did not change.</div>
19 <div id="selection"></div>
20 <script>
21 if (window.testRunner) {
22 testRunner.waitUntilDone();
25 if (window.eventSender) {
26 eventSender.dragMode = false;
27 mouseMoveToIndexInListbox(0, 'test');
28 eventSender.mouseDown();
29 mouseMoveToIndexInListbox(1, 'test');
30 mouseMoveToIndexInListbox(2, 'test');
31 setTimeout(function() {
32 mouseMoveToIndexInListbox(3, 'test');
33 testRunner.notifyDone();
34 }, 100);
36 </script>
37 </html>