Index: LayoutTests/fast/forms/checkValidity-select-form.html |
diff --git a/LayoutTests/fast/forms/checkValidity-select-form.html b/LayoutTests/fast/forms/checkValidity-select-form.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..83377692ca92f8842a4eabd83fe1e6527435390f |
--- /dev/null |
+++ b/LayoutTests/fast/forms/checkValidity-select-form.html |
@@ -0,0 +1,26 @@ |
+<html> |
+<body> |
+<script src="../../resources/js-test.js"></script> |
+<form action=""> |
+<select required=""> |
+<option>abc</option> |
+</select> |
+</form> |
+<script> |
+description("This test checks if checkValidity() returns correctly a true result on selecting a valid element."); |
+jsTestIsAsync = true; |
+var form = document.querySelector('form'); |
+var select = document.querySelector('select'); |
+form.onchange = function() { |
+ shouldBeTrue('form.checkValidity()'); |
+ finishJSTest(); |
+}; |
+window.onload = function() { |
+ select.value = null; |
+ select.focus(); |
+ if (window.eventSender) |
+ eventSender.keyDown('a'); |
+}; |
+</script> |
+</body> |
+</html> |