Index: LayoutTests/fast/forms/select/select-mouseDisabled.html |
diff --git a/LayoutTests/fast/forms/select/select-mouseDisabled.html b/LayoutTests/fast/forms/select/select-mouseDisabled.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c79f1f534937b5eab0a4659b95a600e3fdaad3d0 |
--- /dev/null |
+++ b/LayoutTests/fast/forms/select/select-mouseDisabled.html |
@@ -0,0 +1,35 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/js-test.js"></script> |
+<script src="../resources/common.js"></script> |
+</head> |
+ |
+<body> |
+ |
+<select id=select1 size=4> |
+<option selected>a</option> |
+<option>b</option> |
+<option>c</option> |
+<option>d</option> |
+</select> |
+ |
+<script> |
+description('Test to check when select is element is disabled, value cannot be changed by mouse.'); |
+ |
+var select1 = document.getElementById('select1'); |
+select1.focus(); |
+shouldBeEqualToString('select1.value', 'a'); |
+mouseMoveToIndexInListbox(1, 'select1'); |
+eventSender.mouseDown(); |
+eventSender.mouseUp(); |
+shouldBeEqualToString('select1.value', 'b'); |
+select1.disabled = true; |
+mouseMoveToIndexInListbox(2, 'select1'); |
+eventSender.mouseDown(); |
+eventSender.mouseUp(); |
+shouldBeEqualToString('select1.value', 'b'); |
+ |
+</script> |
+</body> |
+</html> |