Changeset 127562 in webkit


Ignore:
Timestamp:
Sep 5, 2012 12:56:10 AM (12 years ago)
Author:
yosin@chromium.org
Message:

Test cases for Up/Down key behavior on field which has maximum/minimum in multiple fields time input UI
https://bugs.webkit.org/show_bug.cgi?id=95824

Reviewed by Kent Tamura.

This patch adds test cases for Up/Down key behavior on field which has
maximum/minimum value in multiple fields time input UI.

This patch affects ports which enable both ENABLE_INPUT_TYPE_TIME and
ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS.

  • fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events-expected.txt: Updated expectation for new test cases.
  • fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events.html: Changed to add test cases for Up key behavior for "23:59:59.999" (11:59:59.999PM in UI) and Down key behavior for "01:00:00.000" (01:00:00.000 AM in UI)
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r127560 r127562  
     12012-09-05  Yoshifumi Inoue  <yosin@chromium.org>
     2
     3        Test cases for Up/Down key behavior on field which has maximum/minimum in multiple fields time input UI
     4        https://bugs.webkit.org/show_bug.cgi?id=95824
     5
     6        Reviewed by Kent Tamura.
     7
     8        This patch adds test cases for Up/Down key behavior on field which has
     9        maximum/minimum value in multiple fields time input UI.
     10
     11        This patch affects ports which enable both ENABLE_INPUT_TYPE_TIME and
     12        ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS.
     13
     14        * fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events-expected.txt: Updated expectation for new test cases.
     15        * fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events.html: Changed to add test cases for Up key behavior for "23:59:59.999" (11:59:59.999PM in UI) and Down key behavior for "01:00:00.000" (01:00:00.000 AM in UI)
     16
    1172012-09-05  Dan Bernstein  <mitz@apple.com>
    218
  • trunk/LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events-expected.txt

    r127235 r127562  
    3131PASS input.value is "15:03"
    3232PASS document.activeElement.id is "before"
     33== Up key on maximum value ==
     34PASS input.value is "13:00"
     35== Down key on minimum value ==
     36PASS input.value is "00:59:59.999"
    3337== Backspace key ==
    3438PASS input.value is ""
  • trunk/LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-keyboard-events.html

    r127235 r127562  
    111111shouldBeEqualToString('document.activeElement.id', 'before');
    112112
     113beginTest('Up key on maximum value', '12:59:59.999');
     114keyDown('upArrow');
     115keyDown('\t');
     116keyDown('upArrow');
     117keyDown('\t');
     118keyDown('upArrow');
     119keyDown('\t');
     120keyDown('upArrow');
     121shouldBeEqualToString('input.value', '13:00');
     122
     123beginTest('Down key on minimum value', '01:00');
     124input.step = 0.001;
     125keyDown('downArrow');
     126keyDown('\t');
     127keyDown('downArrow');
     128keyDown('\t');
     129keyDown('downArrow');
     130keyDown('\t');
     131keyDown('downArrow');
     132shouldBeEqualToString('input.value', '00:59:59.999');
     133input.step = 60;
     134
    113135beginTest('Backspace key', '12:34');
    114136keyDown("\b");
Note: See TracChangeset for help on using the changeset viewer.