OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../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 range type.'); | 10 description('Check stepUp() and stepDown() bahevior for range type.'); |
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 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 shouldBe('stepUpExplicitBounds(null, null, 0.1, 1, 8)', '"1.8"'); | 123 shouldBe('stepUpExplicitBounds(null, null, 0.1, 1, 8)', '"1.8"'); |
124 shouldBe('stepUpExplicitBounds(null, null, 0.1, 1, 10)', '"2"'); | 124 shouldBe('stepUpExplicitBounds(null, null, 0.1, 1, 10)', '"2"'); |
125 shouldBe('input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.
stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.
stepUp(); input.value', '"3"'); | 125 shouldBe('input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.
stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.
stepUp(); input.value', '"3"'); |
126 shouldBe('stepUpExplicitBounds(0, 1, 0.003921568627450980, 0, 255)', '"1"'); | 126 shouldBe('stepUpExplicitBounds(0, 1, 0.003921568627450980, 0, 255)', '"1"'); |
127 shouldBe('for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value', '"0
"'); | 127 shouldBe('for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value', '"0
"'); |
128 shouldBe('stepDownExplicitBounds(null, null, 0.1, 1, 8)', '"0.2"'); | 128 shouldBe('stepDownExplicitBounds(null, null, 0.1, 1, 8)', '"0.2"'); |
129 shouldBe('stepDownExplicitBounds(null, null, 0.1, 1)', '"0.9"'); | 129 shouldBe('stepDownExplicitBounds(null, null, 0.1, 1)', '"0.9"'); |
130 </script> | 130 </script> |
131 </body> | 131 </body> |
132 </html> | 132 </html> |
OLD | NEW |