Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-stepup-stepdown.html
blob809a8ce87801c33060554f24018341787b6470d4
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description('Check stepUp() and stepDown() bahevior for unsupported types.');
12 var input = document.createElement('input');
14 debug('Unsupported type');
15 input.type = 'text';
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."');
20 </script>
21 </body>
22 </html>