Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: LayoutTests/fast/forms/select/select-mouseDisabled.html

Issue 159743002: Select when disabled should not allow value change and popup is disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/select-mouseDisabled-expected.txt » ('j') | Source/core/html/HTMLOptionElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698