Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: LayoutTests/fast/forms/number/number-stepup-stepdown.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698