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

Unified Diff: LayoutTests/fast/forms/select/optgroup-clicking.html

Issue 204433002: Selecting OptGroup label does not deselect selected item (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated platform mac expectation file Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/optgroup-clicking-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/select/optgroup-clicking.html
diff --git a/LayoutTests/fast/forms/select/optgroup-clicking.html b/LayoutTests/fast/forms/select/optgroup-clicking.html
index d9891da426656af2d174c90406f5568605956491..543b235f82a6a34d8f568bf284c4a3733bd5486f 100644
--- a/LayoutTests/fast/forms/select/optgroup-clicking.html
+++ b/LayoutTests/fast/forms/select/optgroup-clicking.html
@@ -62,6 +62,12 @@ function test()
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();
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/optgroup-clicking-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698