4 <script src=
"../../../resources/js-test.js"></script>
5 <script src=
"../resources/common.js"></script>
8 <p id=
"description"></p>
9 <select id=
"test" disabled size=
3">
10 <option selected>foo1</option>
18 <div id="result
">Success if onchange was not fired.</div>
19 <div id="console
"></div>
21 description('Test that scrolling the listbox does not fire onchange event');
23 function handleChange() {
24 $('result').textContent = 'Failed. A disabled select should not fire onchange event.';
27 $('test').addEventListener('change', handleChange);
28 if (!window.eventSender) {
29 debug('Click and drag the select element using the mouse. It should not fire onchange event.');
31 mouseMoveToIndexInListbox(1, 'test');
32 eventSender.mouseDown(0);
33 mouseMoveToIndexInListbox(2, 'test');
34 eventSender.mouseUp(0);