Commit c538f3fb authored by yosin@chromium.org's avatar yosin@chromium.org

Test cases for Up/Down key behavior on field which has maximum/minimum in...

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)

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 909ad1bb
2012-09-05 Yoshifumi Inoue <yosin@chromium.org>
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)
2012-09-05 Dan Bernstein <mitz@apple.com>
Added Mac-specific expected results for a test added in r127557. The generic results are
......@@ -30,6 +30,10 @@ PASS document.activeElement.id is "another"
PASS input.value is "15:00"
PASS input.value is "15:03"
PASS document.activeElement.id is "before"
== Up key on maximum value ==
PASS input.value is "13:00"
== Down key on minimum value ==
PASS input.value is "00:59:59.999"
== Backspace key ==
PASS input.value is ""
== Delete key ==
......
......@@ -110,6 +110,28 @@ keyDown('\t', ['shiftKey']);
keyDown('\t', ['shiftKey']);
shouldBeEqualToString('document.activeElement.id', 'before');
beginTest('Up key on maximum value', '12:59:59.999');
keyDown('upArrow');
keyDown('\t');
keyDown('upArrow');
keyDown('\t');
keyDown('upArrow');
keyDown('\t');
keyDown('upArrow');
shouldBeEqualToString('input.value', '13:00');
beginTest('Down key on minimum value', '01:00');
input.step = 0.001;
keyDown('downArrow');
keyDown('\t');
keyDown('downArrow');
keyDown('\t');
keyDown('downArrow');
keyDown('\t');
keyDown('downArrow');
shouldBeEqualToString('input.value', '00:59:59.999');
input.step = 60;
beginTest('Backspace key', '12:34');
keyDown("\b");
shouldBeEqualToString('input.value', '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment