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

Unified Diff: LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll-expected.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
Index: LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll-expected.html
diff --git a/LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll-expected.html b/LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..f4eaa7a7d599597cd780195613f83701c9189fb1
--- /dev/null
+++ b/LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll-expected.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/common.js"></script>
+<style>
+select {background-color: red; }
+</style>
+</head>
+<body>
+<div>
+<select id="test" disabled size=4">
+<option selected>foo1</option>
+<option>foo2</option>
+<option>foo3</option>
+<option>foo4</option>
+<option>foo5</option>
+</select>
+</div>
+
+<div id="result">Success if selection did not change.</div>
+<div id="console"></div>
+</html>
+
« no previous file with comments | « LayoutTests/fast/forms/select/listbox-disabled-no-autoscroll.html ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698