1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
10 description('Check stepUp() and stepDown() bahevior for unsupported types.');
12 var input
= document
.createElement('input');
14 debug('Unsupported type');
16 shouldThrow('input.step = "3"; input.min = ""; input.max = ""; input.value = "2"; input.stepDown()', '"InvalidStateError: Failed to execute \'stepDown\' on \'HTMLInputElement\': This form element is not steppable."');
17 shouldThrow('input.stepDown(0)', '"InvalidStateError: Failed to execute \'stepDown\' on \'HTMLInputElement\': This form element is not steppable."');
18 shouldThrow('input.stepUp()', '"InvalidStateError: Failed to execute \'stepUp\' on \'HTMLInputElement\': This form element is not steppable."');
19 shouldThrow('input.stepUp(0)', '"InvalidStateError: Failed to execute \'stepUp\' on \'HTMLInputElement\': This form element is not steppable."');