OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Check stepUp() and stepDown() bahevior for number type.'); | 8 description('Check stepUp() and stepDown() bahevior for number type.'); |
9 | 9 |
10 var input = document.createElement('input'); | 10 var input = document.createElement('input'); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 shouldBe('input.min = "0"; stepUp("0", "0.003921568627450980", "1", 255)', '"1"'
); | 112 shouldBe('input.min = "0"; stepUp("0", "0.003921568627450980", "1", 255)', '"1"'
); |
113 shouldBe('for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value', '"0
"'); | 113 shouldBe('for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value', '"0
"'); |
114 debug('Rounding'); | 114 debug('Rounding'); |
115 shouldBe('stepUp("5.005", "0.005", "", 2)', '"5.015"'); | 115 shouldBe('stepUp("5.005", "0.005", "", 2)', '"5.015"'); |
116 shouldBe('stepUp("5.005", "0.005", "", 11)', '"5.06"'); | 116 shouldBe('stepUp("5.005", "0.005", "", 11)', '"5.06"'); |
117 shouldBe('stepUp("5.005", "0.005", "", 12)', '"5.065"'); | 117 shouldBe('stepUp("5.005", "0.005", "", 12)', '"5.065"'); |
118 shouldBe('stepUpExplicitBounds("4", "9", "0.005", "5.005", 2)', '"5.015"'); | 118 shouldBe('stepUpExplicitBounds("4", "9", "0.005", "5.005", 2)', '"5.015"'); |
119 shouldBe('stepUpExplicitBounds("4", "9", "0.005", "5.005", 11)', '"5.06"'); | 119 shouldBe('stepUpExplicitBounds("4", "9", "0.005", "5.005", 11)', '"5.06"'); |
120 shouldBe('stepUpExplicitBounds("4", "9", "0.005", "5.005", 12)', '"5.065"'); | 120 shouldBe('stepUpExplicitBounds("4", "9", "0.005", "5.005", 12)', '"5.065"'); |
121 </script> | 121 </script> |
122 <script src="../../../fast/js/resources/js-test-post.js"></script> | |
123 </body> | 122 </body> |
124 </html> | 123 </html> |
OLD | NEW |