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

Side by Side Diff: LayoutTests/fast/forms/range/input-valueasnumber-range.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="../../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('Tests for .valueAsNumber with &lt;input type=range>.'); 10 description('Tests for .valueAsNumber with &lt;input type=range>.');
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 debug('Tests to set invalid values to valueAsNumber:'); 71 debug('Tests to set invalid values to valueAsNumber:');
72 shouldBe('setValueAsNumberAndGetValue(null)', '"0"'); 72 shouldBe('setValueAsNumberAndGetValue(null)', '"0"');
73 shouldThrow('setValueAsNumberAndGetValue("foo")', '"NotSupportedError: The imple mentation did not support the requested type of object or operation."'); 73 shouldThrow('setValueAsNumberAndGetValue("foo")', '"NotSupportedError: The imple mentation did not support the requested type of object or operation."');
74 shouldThrow('setValueAsNumberAndGetValue(NaN)', '"NotSupportedError: The impleme ntation did not support the requested type of object or operation."'); 74 shouldThrow('setValueAsNumberAndGetValue(NaN)', '"NotSupportedError: The impleme ntation did not support the requested type of object or operation."');
75 shouldThrow('setValueAsNumberAndGetValue(Number.NaN)', '"NotSupportedError: The implementation did not support the requested type of object or operation."'); 75 shouldThrow('setValueAsNumberAndGetValue(Number.NaN)', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
76 shouldThrow('setValueAsNumberAndGetValue(Infinity)', '"NotSupportedError: The im plementation did not support the requested type of object or operation."'); 76 shouldThrow('setValueAsNumberAndGetValue(Infinity)', '"NotSupportedError: The im plementation did not support the requested type of object or operation."');
77 shouldThrow('setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY)', '"NotSuppor tedError: The implementation did not support the requested type of object or ope ration."'); 77 shouldThrow('setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY)', '"NotSuppor tedError: The implementation did not support the requested type of object or ope ration."');
78 shouldThrow('setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY)', '"NotSuppor tedError: The implementation did not support the requested type of object or ope ration."'); 78 shouldThrow('setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY)', '"NotSuppor tedError: The implementation did not support the requested type of object or ope ration."');
79 </script> 79 </script>
80 <script src="../../js/resources/js-test-post.js"></script>
81 </body> 80 </body>
82 </html> 81 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698