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

Side by Side Diff: LayoutTests/fast/forms/number/number-validity-stepmismatch.html

Issue 58533003: Move fast/js/resources files to resources. (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="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description('Check stepMismatch results for number type'); 8 description('Check stepMismatch results for number type');
9 9
10 var input = document.createElement('input'); 10 var input = document.createElement('input');
11 document.body.appendChild(input); 11 document.body.appendChild(input);
12 12
13 function stepMismatchFor(value, step, min, disabled) { 13 function stepMismatchFor(value, step, min, disabled) {
14 input.min = min; 14 input.min = min;
(...skipping 30 matching lines...) Expand all
45 shouldBe('stepMismatchFor("0.9", "0.1000001", "")', 'true'); 45 shouldBe('stepMismatchFor("0.9", "0.1000001", "")', 'true');
46 shouldBe('stepMismatchFor("0.9", "0.1000000000000001", "")', 'false'); 46 shouldBe('stepMismatchFor("0.9", "0.1000000000000001", "")', 'false');
47 shouldBe('stepMismatchFor("1.0", "0.3333333333333333", "")', 'false'); 47 shouldBe('stepMismatchFor("1.0", "0.3333333333333333", "")', 'false');
48 debug('Rounding'); 48 debug('Rounding');
49 shouldBe('stepMismatchFor("5.005", "0.005", "4")', 'false'); 49 shouldBe('stepMismatchFor("5.005", "0.005", "4")', 'false');
50 debug('Disabled'); 50 debug('Disabled');
51 shouldBe('stepMismatchFor("1", "2", "0", true)', 'false'); 51 shouldBe('stepMismatchFor("1", "2", "0", true)', 'false');
52 </script> 52 </script>
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698