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

Unified Diff: LayoutTests/fast/forms/checkValidity-005.html

Issue 246883004: Fix checkValidity for form containing menulist select (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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/checkValidity-005-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/checkValidity-005.html
diff --git a/LayoutTests/fast/forms/checkValidity-005.html b/LayoutTests/fast/forms/checkValidity-005.html
new file mode 100644
index 0000000000000000000000000000000000000000..682997b12b7ca673815575dbf8e33dc513ea5006
--- /dev/null
+++ b/LayoutTests/fast/forms/checkValidity-005.html
@@ -0,0 +1,26 @@
+<html>
tkent 2014/04/23 07:37:35 The test file name is bad. -005 is meaningless.
gnana 2014/04/23 14:10:04 Done.
+<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');
+window.onload = function(){
tkent 2014/04/23 07:37:35 White space usage in this code is very inconsisten
gnana 2014/04/23 14:10:04 Done.
+ select.value = null;
+ form.addEventListener('change', function(){
+ shouldBeTrue('form.checkValidity()');
+ finishJSTest();
+ });
+ select.focus();
+ if (window.eventSender)
+ eventSender.keyDown('downArrow');
tkent 2014/04/23 07:37:35 I think this won't work on Mac. .keyDown('a') wou
gnana 2014/04/23 14:10:04 Done.
+};
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/checkValidity-005-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698