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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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="../../js/resources/js-test-pre.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 type=month.'); 10 description('Check stepUp() and stepDown() bahevior for type=month.');
11 11
12 var input = document.createElement('input'); 12 var input = document.createElement('input');
13 var invalidStateErr = '"Error: InvalidStateError: DOM Exception 11"'; 13 var invalidStateErr = '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."';
14 14
15 function setInputAttributes(min, max, step, value) { 15 function setInputAttributes(min, max, step, value) {
16 input.min = min; 16 input.min = min;
17 input.max = max; 17 input.max = max;
18 input.step = step; 18 input.step = step;
19 input.value = value; 19 input.value = value;
20 } 20 }
21 21
22 function stepUp(value, step, max, optionalStepCount) { 22 function stepUp(value, step, max, optionalStepCount) {
23 setInputAttributes(null, max, step, value); 23 setInputAttributes(null, max, step, value);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 shouldThrow('stepUp("2010-02", "3.40282346e+38", null)', invalidStateErr); 62 shouldThrow('stepUp("2010-02", "3.40282346e+38", null)', invalidStateErr);
63 shouldThrow('stepDown("2010-02", "3.40282346e+38", null)', invalidStateErr); 63 shouldThrow('stepDown("2010-02", "3.40282346e+38", null)', invalidStateErr);
64 shouldThrow('stepUp("2010-02", "1", "2010-02")', invalidStateErr); 64 shouldThrow('stepUp("2010-02", "1", "2010-02")', invalidStateErr);
65 shouldThrow('stepDown("2010-02", "1", "2010-02")', invalidStateErr); 65 shouldThrow('stepDown("2010-02", "1", "2010-02")', invalidStateErr);
66 66
67 debug(''); 67 debug('');
68 </script> 68 </script>
69 <script src="../../js/resources/js-test-post.js"></script> 69 <script src="../../js/resources/js-test-post.js"></script>
70 </body> 70 </body>
71 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698