Diff
Modified: trunk/LayoutTests/ChangeLog (87776 => 87777)
--- trunk/LayoutTests/ChangeLog 2011-06-01 06:25:44 UTC (rev 87776)
+++ trunk/LayoutTests/ChangeLog 2011-06-01 06:57:51 UTC (rev 87777)
@@ -1,3 +1,22 @@
+2011-05-31 Kent Tamura <[email protected]>
+
+ Reviewed by Hajime Morita.
+
+ Convert fast/forms/date-input-visible-strings.html to dumpAsText().
+ https://bugs.webkit.org/show_bug.cgi?id=61777
+
+ * fast/forms/date-input-visible-strings.html:
+ * fast/forms/date-input-visible-strings-expected.txt: Added.
+ * platform/chromium-linux/fast/forms/date-input-visible-strings-expected.png: Removed.
+ * platform/chromium-mac-leopard/fast/forms/date-input-visible-strings-expected.png: Removed.
+ * platform/chromium-win/fast/forms/date-input-visible-strings-expected.png: Removed.
+ * platform/chromium-win/fast/forms/date-input-visible-strings-expected.txt: Removed.
+ * platform/gtk/fast/forms/date-input-visible-strings-expected.png: Removed.
+ * platform/gtk/fast/forms/date-input-visible-strings-expected.txt: Removed.
+ * platform/mac/fast/forms/date-input-visible-strings-expected.png: Removed.
+ * platform/mac/fast/forms/date-input-visible-strings-expected.txt: Removed.
+ * platform/win/fast/forms/date-input-visible-strings-expected.txt: Removed.
+
2011-05-31 Annie Sullivan <[email protected]>
Reviewed by Ryosuke Niwa.
Added: trunk/LayoutTests/fast/forms/date-input-visible-strings-expected.txt (0 => 87777)
--- trunk/LayoutTests/fast/forms/date-input-visible-strings-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:57:51 UTC (rev 87777)
@@ -0,0 +1,12 @@
+The user-visible values of the input fields should be localized if the platform has a LocalizedDate implementation. Otherwise, they should be in the HTML5 formats.
+
+date: value='2011-04-27' visible='2011-04-27'
+datetime: value='2011-04-27T01:56:20.391Z' visible='2011-04-27T01:56:20.391Z'
+datetime-local: value='2011-04-27T01:56:20.391' visible='2011-04-27T01:56:20.391'
+month: value='2011-04' visible='2011-04'
+time: value='01:56:20.391' visible='01:56:20.391'
+week: value='2011-W17' visible='2011-W17'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Property changes on: trunk/LayoutTests/fast/forms/date-input-visible-strings-expected.txt
___________________________________________________________________
Added: svn:eol-style
Modified: trunk/LayoutTests/fast/forms/date-input-visible-strings.html (87776 => 87777)
--- trunk/LayoutTests/fast/forms/date-input-visible-strings.html 2011-06-01 06:25:44 UTC (rev 87776)
+++ trunk/LayoutTests/fast/forms/date-input-visible-strings.html 2011-06-01 06:57:51 UTC (rev 87777)
@@ -1,16 +1,13 @@
<!DOCTYPE html>
<html>
<head>
- <title>Date Input Test</title>
- <style>
- input { width: 300px; }
- </style>
+<title>Date Input Test</title>
+<script src=""
</head>
<body>
- <!--
- The user-visible values of the input fields should be localized if the platform has
- a LocalizedDate implementation. Otherwise, they should be in the HTML5 formats.
- -->
+<p>The user-visible values of the input fields should be localized if the platform has
+a LocalizedDate implementation. Otherwise, they should be in the HTML5 formats.</p>
+
<form method="get" action=""
<input title="test" type="date"><br>
<input type="datetime"><br>
@@ -19,19 +16,27 @@
<input type="time"><br>
<input type="week"><br>
</form>
+
+ <div id=console></div>
<script>
// Tue Apr 26 2011 18:56:20 GMT-0700 (PDT) which is Wed Apr 27 2011 01:56:20 GMT.
var date = new Date(1303869380391);
var dateAsNumber = +date;
var inputs = document.getElementsByTagName("input");
- for (var i=0, len=inputs.length; i<len; ++i) {
+ for (var i=0, len = inputs.length; i < len; ++i) {
var input = inputs[i];
input.name = i;
if ("valueAsNumber" in input && input.type !== "month")
input.valueAsNumber = dateAsNumber;
else if ("valueAsDate" in input)
input.valueAsDate = date;
+ input.focus();
+ document.execCommand("SelectAll");
+ debug(input.type + ": value='" + input.value + "' visible='" + document.getSelection().toString() + "'");
}
+ document.body.removeChild(document.getElementsByTagName("form")[0]);
+ var successfullyParsed = true;
</script>
+<script src=""
</body>
</html>
Deleted: trunk/LayoutTests/platform/chromium-linux/fast/forms/date-input-visible-strings-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/chromium-mac-leopard/fast/forms/date-input-visible-strings-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/chromium-win/fast/forms/date-input-visible-strings-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/chromium-win/fast/forms/date-input-visible-strings-expected.txt (87776 => 87777)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:25:44 UTC (rev 87776)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:57:51 UTC (rev 87777)
@@ -1,54 +0,0 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x172
- RenderBlock {HTML} at (0,0) size 800x172
- RenderBody {BODY} at (8,8) size 784x156
- RenderBlock {FORM} at (0,0) size 784x156
- RenderTextControl {INPUT} at (0,2) size 304x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (304,3) size 0x19
- RenderTextControl {INPUT} at (0,28) size 304x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (304,29) size 0x19
- RenderTextControl {INPUT} at (0,54) size 304x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (304,55) size 0x19
- RenderTextControl {INPUT} at (0,80) size 304x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (304,81) size 0x19
- RenderTextControl {INPUT} at (0,106) size 304x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (304,107) size 0x19
- RenderTextControl {INPUT} at (0,132) size 304x22 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (304,133) size 0x19
-layer at (10,13) size 285x16
- RenderBlock {DIV} at (2,3) size 285x16
- RenderText {#text} at (1,0) size 64x16
- text run at (1,0) width 64: "2011-04-27"
-layer at (10,39) size 285x16
- RenderBlock {DIV} at (2,3) size 285x16
- RenderText {#text} at (1,0) size 153x16
- text run at (1,0) width 153: "2011-04-27T01:56:20.391Z"
-layer at (10,65) size 285x16
- RenderBlock {DIV} at (2,3) size 285x16
- RenderText {#text} at (1,0) size 146x16
- text run at (1,0) width 146: "2011-04-27T01:56:20.391"
-layer at (10,91) size 285x16
- RenderBlock {DIV} at (2,3) size 285x16
- RenderText {#text} at (1,0) size 46x16
- text run at (1,0) width 46: "2011-04"
-layer at (10,117) size 285x16
- RenderBlock {DIV} at (2,3) size 285x16
- RenderText {#text} at (1,0) size 75x16
- text run at (1,0) width 75: "01:56:20.391"
-layer at (10,143) size 285x16
- RenderBlock {DIV} at (2,3) size 285x16
- RenderText {#text} at (1,0) size 59x16
- text run at (1,0) width 59: "2011-W17"
-layer at (295,12) size 15x18
- RenderBlock (relative positioned) {DIV} at (287,2) size 15x18
-layer at (295,38) size 15x18
- RenderBlock (relative positioned) {DIV} at (287,2) size 15x18
-layer at (295,64) size 15x18
- RenderBlock (relative positioned) {DIV} at (287,2) size 15x18
-layer at (295,90) size 15x18
- RenderBlock (relative positioned) {DIV} at (287,2) size 15x18
-layer at (295,116) size 15x18
- RenderBlock (relative positioned) {DIV} at (287,2) size 15x18
-layer at (295,142) size 15x18
- RenderBlock (relative positioned) {DIV} at (287,2) size 15x18
Deleted: trunk/LayoutTests/platform/gtk/fast/forms/date-input-visible-strings-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/gtk/fast/forms/date-input-visible-strings-expected.txt (87776 => 87777)
--- trunk/LayoutTests/platform/gtk/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:25:44 UTC (rev 87776)
+++ trunk/LayoutTests/platform/gtk/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:57:51 UTC (rev 87777)
@@ -1,54 +0,0 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x190
- RenderBlock {HTML} at (0,0) size 800x190
- RenderBody {BODY} at (8,8) size 784x174
- RenderBlock {FORM} at (0,0) size 784x174
- RenderTextControl {INPUT} at (0,2) size 306x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,5) size 0x19
- RenderTextControl {INPUT} at (0,31) size 306x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,34) size 0x19
- RenderTextControl {INPUT} at (0,60) size 306x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,63) size 0x19
- RenderTextControl {INPUT} at (0,89) size 306x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,92) size 0x19
- RenderTextControl {INPUT} at (0,118) size 306x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,121) size 0x19
- RenderTextControl {INPUT} at (0,147) size 306x25 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,150) size 0x19
-layer at (11,13) size 280x19
- RenderBlock {DIV} at (3,3) size 280x19
- RenderText {#text} at (1,0) size 82x19
- text run at (1,0) width 82: "2011-04-27"
-layer at (11,42) size 280x19
- RenderBlock {DIV} at (3,3) size 280x19
- RenderText {#text} at (1,0) size 195x19
- text run at (1,0) width 195: "2011-04-27T01:56:20.391Z"
-layer at (11,71) size 280x19
- RenderBlock {DIV} at (3,3) size 280x19
- RenderText {#text} at (1,0) size 185x19
- text run at (1,0) width 185: "2011-04-27T01:56:20.391"
-layer at (11,100) size 280x19
- RenderBlock {DIV} at (3,3) size 280x19
- RenderText {#text} at (1,0) size 59x19
- text run at (1,0) width 59: "2011-04"
-layer at (11,129) size 280x19
- RenderBlock {DIV} at (3,3) size 280x19
- RenderText {#text} at (1,0) size 93x19
- text run at (1,0) width 93: "01:56:20.391"
-layer at (11,158) size 280x19
- RenderBlock {DIV} at (3,3) size 280x19
- RenderText {#text} at (1,0) size 74x19
- text run at (1,0) width 74: "2011-W17"
-layer at (292,12) size 15x21
- RenderBlock (relative positioned) {DIV} at (284,2) size 15x21
-layer at (292,41) size 15x21
- RenderBlock (relative positioned) {DIV} at (284,2) size 15x21
-layer at (292,70) size 15x21
- RenderBlock (relative positioned) {DIV} at (284,2) size 15x21
-layer at (292,99) size 15x21
- RenderBlock (relative positioned) {DIV} at (284,2) size 15x21
-layer at (292,128) size 15x21
- RenderBlock (relative positioned) {DIV} at (284,2) size 15x21
-layer at (292,157) size 15x21
- RenderBlock (relative positioned) {DIV} at (284,2) size 15x21
Deleted: trunk/LayoutTests/platform/mac/fast/forms/date-input-visible-strings-expected.png
(Binary files differ)
Deleted: trunk/LayoutTests/platform/mac/fast/forms/date-input-visible-strings-expected.txt (87776 => 87777)
--- trunk/LayoutTests/platform/mac/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:25:44 UTC (rev 87776)
+++ trunk/LayoutTests/platform/mac/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:57:51 UTC (rev 87777)
@@ -1,54 +0,0 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x154
- RenderBlock {HTML} at (0,0) size 800x154
- RenderBody {BODY} at (8,8) size 784x138
- RenderBlock {FORM} at (0,0) size 784x138
- RenderTextControl {INPUT} at (0,2) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,2) size 0x18
- RenderTextControl {INPUT} at (0,25) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,25) size 0x18
- RenderTextControl {INPUT} at (0,48) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,48) size 0x18
- RenderTextControl {INPUT} at (0,71) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,71) size 0x18
- RenderTextControl {INPUT} at (0,94) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,94) size 0x18
- RenderTextControl {INPUT} at (0,117) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,117) size 0x18
-layer at (11,13) size 282x13
- RenderBlock {DIV} at (3,3) size 282x13
- RenderText {#text} at (1,0) size 69x13
- text run at (1,0) width 69: "2011-04-27"
-layer at (11,36) size 282x13
- RenderBlock {DIV} at (3,3) size 282x13
- RenderText {#text} at (1,0) size 156x13
- text run at (1,0) width 156: "2011-04-27T01:56:20.391Z"
-layer at (11,59) size 282x13
- RenderBlock {DIV} at (3,3) size 282x13
- RenderText {#text} at (1,0) size 149x13
- text run at (1,0) width 149: "2011-04-27T01:56:20.391"
-layer at (11,82) size 282x13
- RenderBlock {DIV} at (3,3) size 282x13
- RenderText {#text} at (1,0) size 49x13
- text run at (1,0) width 49: "2011-04"
-layer at (11,105) size 282x13
- RenderBlock {DIV} at (3,3) size 282x13
- RenderText {#text} at (1,0) size 74x13
- text run at (1,0) width 74: "01:56:20.391"
-layer at (11,128) size 282x13
- RenderBlock {DIV} at (3,3) size 282x13
- RenderText {#text} at (1,0) size 58x13
- text run at (1,0) width 58: "2011-W17"
-layer at (298,12) size 13x15
- RenderBlock (relative positioned) {DIV} at (290,2) size 13x15
-layer at (298,35) size 13x15
- RenderBlock (relative positioned) {DIV} at (290,2) size 13x15
-layer at (298,58) size 13x15
- RenderBlock (relative positioned) {DIV} at (290,2) size 13x15
-layer at (298,81) size 13x15
- RenderBlock (relative positioned) {DIV} at (290,2) size 13x15
-layer at (298,104) size 13x15
- RenderBlock (relative positioned) {DIV} at (290,2) size 13x15
-layer at (298,127) size 13x15
- RenderBlock (relative positioned) {DIV} at (290,2) size 13x15
Deleted: trunk/LayoutTests/platform/win/fast/forms/date-input-visible-strings-expected.txt (87776 => 87777)
--- trunk/LayoutTests/platform/win/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:25:44 UTC (rev 87776)
+++ trunk/LayoutTests/platform/win/fast/forms/date-input-visible-strings-expected.txt 2011-06-01 06:57:51 UTC (rev 87777)
@@ -1,42 +0,0 @@
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x154
- RenderBlock {HTML} at (0,0) size 800x154
- RenderBody {BODY} at (8,8) size 784x138
- RenderBlock {FORM} at (0,0) size 784x138
- RenderTextControl {INPUT} at (0,2) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,2) size 0x18
- RenderTextControl {INPUT} at (0,25) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,25) size 0x18
- RenderTextControl {INPUT} at (0,48) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,48) size 0x18
- RenderTextControl {INPUT} at (0,71) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,71) size 0x18
- RenderTextControl {INPUT} at (0,94) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,94) size 0x18
- RenderTextControl {INPUT} at (0,117) size 306x19 [bgcolor=#FFFFFF] [border: (2px inset #000000)]
- RenderBR {BR} at (306,117) size 0x18
-layer at (11,13) size 295x13
- RenderBlock {DIV} at (3,3) size 295x13
- RenderText {#text} at (1,0) size 69x13
- text run at (1,0) width 69: "2011-04-27"
-layer at (11,36) size 295x13
- RenderBlock {DIV} at (3,3) size 295x13
- RenderText {#text} at (1,0) size 156x13
- text run at (1,0) width 156: "2011-04-27T01:56:20.391Z"
-layer at (11,59) size 295x13
- RenderBlock {DIV} at (3,3) size 295x13
- RenderText {#text} at (1,0) size 149x13
- text run at (1,0) width 149: "2011-04-27T01:56:20.391"
-layer at (11,82) size 295x13
- RenderBlock {DIV} at (3,3) size 295x13
- RenderText {#text} at (1,0) size 49x13
- text run at (1,0) width 49: "2011-04"
-layer at (11,105) size 295x13
- RenderBlock {DIV} at (3,3) size 295x13
- RenderText {#text} at (1,0) size 74x13
- text run at (1,0) width 74: "01:56:20.391"
-layer at (11,128) size 295x13
- RenderBlock {DIV} at (3,3) size 295x13
- RenderText {#text} at (1,0) size 58x13
- text run at (1,0) width 58: "2011-W17"