Changeset 87777 in webkit
- Timestamp:
- May 31, 2011 11:57:51 PM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 9 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87775 r87777 1 2011-05-31 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Hajime Morita. 4 5 Convert fast/forms/date-input-visible-strings.html to dumpAsText(). 6 https://bugs.webkit.org/show_bug.cgi?id=61777 7 8 * fast/forms/date-input-visible-strings.html: 9 * fast/forms/date-input-visible-strings-expected.txt: Added. 10 * platform/chromium-linux/fast/forms/date-input-visible-strings-expected.png: Removed. 11 * platform/chromium-mac-leopard/fast/forms/date-input-visible-strings-expected.png: Removed. 12 * platform/chromium-win/fast/forms/date-input-visible-strings-expected.png: Removed. 13 * platform/chromium-win/fast/forms/date-input-visible-strings-expected.txt: Removed. 14 * platform/gtk/fast/forms/date-input-visible-strings-expected.png: Removed. 15 * platform/gtk/fast/forms/date-input-visible-strings-expected.txt: Removed. 16 * platform/mac/fast/forms/date-input-visible-strings-expected.png: Removed. 17 * platform/mac/fast/forms/date-input-visible-strings-expected.txt: Removed. 18 * platform/win/fast/forms/date-input-visible-strings-expected.txt: Removed. 19 1 20 2011-05-31 Annie Sullivan <sullivan@chromium.org> 2 21 -
trunk/LayoutTests/fast/forms/date-input-visible-strings.html
r85382 r87777 2 2 <html> 3 3 <head> 4 <title>Date Input Test</title> 5 <style> 6 input { width: 300px; } 7 </style> 4 <title>Date Input Test</title> 5 <script src="../js/resources/js-test-pre.js"></script> 8 6 </head> 9 7 <body> 10 <!-- 11 The user-visible values of the input fields should be localized if the platform has 12 a LocalizedDate implementation. Otherwise, they should be in the HTML5 formats. 13 --> 8 <p>The user-visible values of the input fields should be localized if the platform has 9 a LocalizedDate implementation. Otherwise, they should be in the HTML5 formats.</p> 10 14 11 <form method="get" action="#"> 15 12 <input title="test" type="date"><br> … … 20 17 <input type="week"><br> 21 18 </form> 19 20 <div id=console></div> 22 21 <script> 23 22 // Tue Apr 26 2011 18:56:20 GMT-0700 (PDT) which is Wed Apr 27 2011 01:56:20 GMT. … … 25 24 var dateAsNumber = +date; 26 25 var inputs = document.getElementsByTagName("input"); 27 for (var i=0, len =inputs.length; i<len; ++i) {26 for (var i=0, len = inputs.length; i < len; ++i) { 28 27 var input = inputs[i]; 29 28 input.name = i; … … 32 31 else if ("valueAsDate" in input) 33 32 input.valueAsDate = date; 33 input.focus(); 34 document.execCommand("SelectAll"); 35 debug(input.type + ": value='" + input.value + "' visible='" + document.getSelection().toString() + "'"); 34 36 } 37 document.body.removeChild(document.getElementsByTagName("form")[0]); 38 var successfullyParsed = true; 35 39 </script> 40 <script src="../js/resources/js-test-post.js"></script> 36 41 </body> 37 42 </html>
Note: See TracChangeset
for help on using the changeset viewer.