Chromium Code Reviews| 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> |