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(); |