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

Unified Diff: LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll.html

Issue 14996003: Disabled select element should not fire onchange event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added test and moved the checks to RenderListBox Created 7 years, 7 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/listbox-disabled-no-autoscroll-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll.html
diff --git a/LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll.html b/LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll.html
new file mode 100644
index 0000000000000000000000000000000000000000..2b0107319020d6edfacb7d6a71551a40c6c8141b
--- /dev/null
+++ b/LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/common.js"></script>
+<style>
+select {background-color: red; }
+</style>
+</head>
+<body>
+<select disabled id="test" size=4">
+<option selected>foo1</option>
+<option>foo2</option>
+<option>foo3</option>
+<option>foo4</option>
+<option>foo5</option>
+</select>
+
+<div id="result">Success if selection did not change.</div>
+<div id="selection"></div>
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+}
+
+if (window.eventSender) {
+ eventSender.dragMode = false;
+ mouseMoveToIndexInListbox(0, 'test');
+ eventSender.mouseDown();
+ mouseMoveToIndexInListbox(1, 'test');
+ mouseMoveToIndexInListbox(2, 'test');
+ setTimeout(function() {
+ mouseMoveToIndexInListbox(3, 'test');
+ testRunner.notifyDone();
+ }, 100);
+}
+</script>
+</html>
+
« no previous file with comments | « no previous file | LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698