| Index: third_party/WebKit/LayoutTests/fast/forms/select/select-ask-for-reset.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/select/select-ask-for-reset.html b/third_party/WebKit/LayoutTests/fast/forms/select/select-ask-for-reset.html
|
| index fbee983229c17bb22c9385e587bff29430e05569..f2d7432c9ec781561af643a5e7de6bb8768c854f 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/forms/select/select-ask-for-reset.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/forms/select/select-ask-for-reset.html
|
| @@ -29,5 +29,16 @@ test(function() {
|
| // option list.
|
| assert_equals(select.selectedIndex, -1);
|
| }, 'Removing a SELECT tree from another tree should not reset selection.');
|
| +
|
| +test(function() {
|
| + var form = document.createElement('form');
|
| + document.body.appendChild(form);
|
| + var select = document.createElement('select');
|
| + form.appendChild(select);
|
| + select.innerHTML = '<option disabled>Apple</option><option>Banana</option><option>Cherry</option>';
|
| + assert_equals(select.selectedIndex, 1);
|
| + form.reset();
|
| + assert_equals(select.selectedIndex, 1);
|
| +}, 'Reset should select the first option element in the list of options that is not disabled to true');
|
| </script>
|
| </body>
|
|
|