Changeset 87777 in webkit


Ignore:
Timestamp:
May 31, 2011 11:57:51 PM (13 years ago)
Author:
tkent@chromium.org
Message:

2011-05-31 Kent Tamura <tkent@chromium.org>

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.
Location:
trunk/LayoutTests
Files:
1 added
9 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87775 r87777  
     12011-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
    1202011-05-31  Annie Sullivan  <sullivan@chromium.org>
    221
  • trunk/LayoutTests/fast/forms/date-input-visible-strings.html

    r85382 r87777  
    22<html>
    33<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>
    86</head>
    97<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
     9a LocalizedDate implementation. Otherwise, they should be in the HTML5 formats.</p>
     10
    1411    <form method="get" action="#">
    1512        <input title="test" type="date"><br>
     
    2017        <input type="week"><br>
    2118    </form>
     19
     20    <div id=console></div>
    2221    <script>
    2322    // Tue Apr 26 2011 18:56:20 GMT-0700 (PDT) which is Wed Apr 27 2011 01:56:20 GMT.
     
    2524    var dateAsNumber = +date;
    2625    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) {
    2827        var input = inputs[i];
    2928        input.name = i;
     
    3231        else if ("valueAsDate" in input)
    3332            input.valueAsDate = date;
     33        input.focus();
     34        document.execCommand("SelectAll");
     35        debug(input.type + ": value='" + input.value + "' visible='" + document.getSelection().toString() + "'");
    3436    }
     37    document.body.removeChild(document.getElementsByTagName("form")[0]);
     38    var successfullyParsed = true;
    3539    </script>
     40<script src="../js/resources/js-test-post.js"></script>
    3641</body>
    3742</html>
Note: See TracChangeset for help on using the changeset viewer.