OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description('Check stepUp() and stepDown() bahevior for unsupported types.'); | 10 description('Check stepUp() and stepDown() bahevior for unsupported types.'); |
11 | 11 |
12 var input = document.createElement('input'); | 12 var input = document.createElement('input'); |
13 var invalidStateErr = '"InvalidStateError: An attempt was made to use an object
that is not, or is no longer, usable."'; | 13 var invalidStateErr = '"InvalidStateError: An attempt was made to use an object
that is not, or is no longer, usable."'; |
14 | 14 |
15 debug('Unsupported type'); | 15 debug('Unsupported type'); |
16 input.type = 'text'; | 16 input.type = 'text'; |
17 shouldThrow('input.step = "3"; input.min = ""; input.max = ""; input.value = "2"
; input.stepDown()', '"InvalidStateError: An attempt was made to use an object t
hat is not, or is no longer, usable."'); | 17 shouldThrow('input.step = "3"; input.min = ""; input.max = ""; input.value = "2"
; input.stepDown()', '"InvalidStateError: An attempt was made to use an object t
hat is not, or is no longer, usable."'); |
18 shouldThrow('input.stepDown(0)', '"InvalidStateError: An attempt was made to use
an object that is not, or is no longer, usable."'); | 18 shouldThrow('input.stepDown(0)', '"InvalidStateError: An attempt was made to use
an object that is not, or is no longer, usable."'); |
19 shouldThrow('input.stepUp()', '"InvalidStateError: An attempt was made to use an
object that is not, or is no longer, usable."'); | 19 shouldThrow('input.stepUp()', '"InvalidStateError: An attempt was made to use an
object that is not, or is no longer, usable."'); |
20 shouldThrow('input.stepUp(0)', '"InvalidStateError: An attempt was made to use a
n object that is not, or is no longer, usable."'); | 20 shouldThrow('input.stepUp(0)', '"InvalidStateError: An attempt was made to use a
n object that is not, or is no longer, usable."'); |
21 </script> | 21 </script> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |