projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
forms
/
select
/
optgroup-clicking.html
diff --git
a/src/third_party/WebKit/LayoutTests/fast/forms/select/optgroup-clicking.html
b/src/third_party/WebKit/LayoutTests/fast/forms/select/optgroup-clicking.html
index
d9891da
..
543b235
100644
(file)
--- a/
src/third_party/WebKit/LayoutTests/fast/forms/select/optgroup-clicking.html
+++ b/
src/third_party/WebKit/LayoutTests/fast/forms/select/optgroup-clicking.html
@@
-62,6
+62,12
@@
function test()
eventSender.mouseUp();
shouldBe('$("listbox").selectedIndex', '1');
eventSender.mouseUp();
shouldBe('$("listbox").selectedIndex', '1');
+ debug("\nClick on optgroup, should not deselect selectedIndex");
+ mouseMoveToIndexInListbox(0, 'listbox'); // Select on optgroup
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ shouldBe('$("listbox").selectedIndex', '1');
+
debug("\nClick disabled option - doesn't change selectedIndex");
mouseMoveToIndexInListbox(5 + 2, 'listbox'); // +2 for optgroup's
eventSender.mouseDown();
debug("\nClick disabled option - doesn't change selectedIndex");
mouseMoveToIndexInListbox(5 + 2, 'listbox'); // +2 for optgroup's
eventSender.mouseDown();