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

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

Issue 10786036: Merge 122552 - REGRESSION(r119948): [Forms] Spin button Up/Down actions make value to zero for inpu… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 months 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 stepping-up and -down for number input from renderer.'); 8 description('Check stepping-up and -down for number input from renderer.');
9 9
10 var input = document.createElement('input'); 10 var input = document.createElement('input');
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 shouldBe('stepDown("1", "3.40282346e+38", "", 2)', '"-3.40282346e+38"'); 124 shouldBe('stepDown("1", "3.40282346e+38", "", 2)', '"-3.40282346e+38"');
125 shouldBe('stepUp("-1", "1", "0")', '"0"'); 125 shouldBe('stepUp("-1", "1", "0")', '"0"');
126 shouldBe('stepUp("0", "1", "0")', '"0"'); 126 shouldBe('stepUp("0", "1", "0")', '"0"');
127 shouldBe('stepUp("-1", "1", "0", 2)', '"0"'); 127 shouldBe('stepUp("-1", "1", "0", 2)', '"0"');
128 shouldBe('stepUp("1", "3.40282346e+38", "", 2)', '"3.40282346e+38"'); 128 shouldBe('stepUp("1", "3.40282346e+38", "", 2)', '"3.40282346e+38"');
129 debug('stepDown()/stepUp() for stepMismatch values'); 129 debug('stepDown()/stepUp() for stepMismatch values');
130 shouldBe('stepUp("1", "2", "")', '"2"'); 130 shouldBe('stepUp("1", "2", "")', '"2"');
131 shouldBe('input.min = "0"; stepUp("9", "10", "")', '"10"'); 131 shouldBe('input.min = "0"; stepUp("9", "10", "")', '"10"');
132 shouldBe('stepDown("19", "10", "0")', '"10"'); 132 shouldBe('stepDown("19", "10", "0")', '"10"');
133 shouldBe('stepUp("89", "10", "99")', '"90"'); 133 shouldBe('stepUp("89", "10", "99")', '"90"');
134 shouldBe('stepUp("7", "300", "")', '"300"');
135 shouldBe('stepUp("-7", "300", "")', '"0"');
136 shouldBe('stepDown("7", "300", "")', '"0"');
137 shouldBe('stepDown("-7", "300", "")', '"-300"');
134 debug('Huge value and small step'); 138 debug('Huge value and small step');
135 shouldBe('input.min = ""; stepUp("1e+38", "1", "", 999)', '"1e+38"'); 139 shouldBe('input.min = ""; stepUp("1e+38", "1", "", 999)', '"1e+38"');
136 shouldBe('input.max = ""; stepDown("1e+38", "1", "", 999)', '"1e+38"'); 140 shouldBe('input.max = ""; stepDown("1e+38", "1", "", 999)', '"1e+38"');
137 debug('Fractional numbers'); 141 debug('Fractional numbers');
138 shouldBe('input.min = ""; stepUp("0", "0.33333333333333333", "", 3)', '"1"'); 142 shouldBe('input.min = ""; stepUp("0", "0.33333333333333333", "", 3)', '"1"');
139 shouldBe('stepUp("1", "0.1", "", 10)', '"2"'); 143 shouldBe('stepUp("1", "0.1", "", 10)', '"2"');
140 shouldBe('input.min = "0"; stepUp("0", "0.003921568627450980", "1", 255)', '"1"' ); 144 shouldBe('input.min = "0"; stepUp("0", "0.003921568627450980", "1", 255)', '"1"' );
141 debug('Rounding'); 145 debug('Rounding');
142 shouldBe('stepUp("5.005", "0.005", "", 2)', '"5.015"'); 146 shouldBe('stepUp("5.005", "0.005", "", 2)', '"5.015"');
143 shouldBe('stepUp("5.005", "0.005", "", 11)', '"5.06"'); 147 shouldBe('stepUp("5.005", "0.005", "", 11)', '"5.06"');
(...skipping 16 matching lines...) Expand all
160 shouldBe('stepDownExplicitBounds(-4, -1, 1, 0)', '"-1"'); 164 shouldBe('stepDownExplicitBounds(-4, -1, 1, 0)', '"-1"');
161 shouldBe('stepUpExplicitBounds(-4, -1, 1, 0)', '"0"'); 165 shouldBe('stepUpExplicitBounds(-4, -1, 1, 0)', '"0"');
162 shouldBe('stepUpExplicitBounds(-100, null, 3, 3)', '"5"'); 166 shouldBe('stepUpExplicitBounds(-100, null, 3, 3)', '"5"');
163 shouldBe('stepDownExplicitBounds(-100, null, 3, 3)', '"2"'); 167 shouldBe('stepDownExplicitBounds(-100, null, 3, 3)', '"2"');
164 168
165 debug(''); 169 debug('');
166 </script> 170 </script>
167 <script src="../../../fast/js/resources/js-test-post.js"></script> 171 <script src="../../../fast/js/resources/js-test-post.js"></script>
168 </body> 172 </body>
169 </html> 173 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698