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

Side by Side Diff: LayoutTests/fast/forms/datetimelocal/input-valueasnumber-datetimelocal.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="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.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=datetime-local>.'); 10 description('Tests for .valueAsNumber with &lt;input type=datetime-local>.');
11 11
12 var input = document.createElement('input'); 12 var input = document.createElement('input');
13 input.type = 'datetime-local'; 13 input.type = 'datetime-local';
14 14
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 shouldThrow('input.valueAsNumber = Date.UTC(275760, 8, 13, 0, 0, 0, 1)', '"NotSu pportedError: The implementation did not support the requested type of object or operation."'); 53 shouldThrow('input.valueAsNumber = Date.UTC(275760, 8, 13, 0, 0, 0, 1)', '"NotSu pportedError: The implementation did not support the requested type of object or operation."');
54 54
55 debug('Step attribute value and string representation:'); 55 debug('Step attribute value and string representation:');
56 // If the step attribute value is 1 second and the second part is 0, we should s how the second part. 56 // If the step attribute value is 1 second and the second part is 0, we should s how the second part.
57 shouldBe('input.step = "1"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0, 0) ', '"2010-01-21T00:00:00"'); 57 shouldBe('input.step = "1"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0, 0) ', '"2010-01-21T00:00:00"');
58 // If the step attribute value is 0.001 second and the millisecond part is 0, we should show the millisecond part. 58 // If the step attribute value is 0.001 second and the millisecond part is 0, we should show the millisecond part.
59 shouldBe('input.step = "0.001"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0 , 0)', '"2010-01-21T00:00:00.000"'); 59 shouldBe('input.step = "0.001"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0 , 0)', '"2010-01-21T00:00:00.000"');
60 </script> 60 </script>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/datetimelocal/input-valueasdate-datetimelocal.html ('k') | LayoutTests/fast/forms/editing-value.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698