Changeset 130884 in webkit
- Timestamp:
- Oct 10, 2012 3:52:46 AM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 17 added
- 10 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r130883 r130884 1 2012-10-09 Kent Tamura <tkent@chromium.org> 2 3 Add behavior tests for input[type=date] with multiple fields 4 https://bugs.webkit.org/show_bug.cgi?id=98480 5 6 Reviewed by Kentaro Hara. 7 8 * fast/forms/date-multiple-fields/date-multiple-fields-ax-aria-attributes-expected.txt: Added. 9 * fast/forms/date-multiple-fields/date-multiple-fields-ax-aria-attributes.html: Added. 10 * fast/forms/date-multiple-fields/date-multiple-fields-ax-value-changed-notification-expected.txt: Added. 11 * fast/forms/date-multiple-fields/date-multiple-fields-ax-value-changed-notification.html: Added. 12 * fast/forms/date-multiple-fields/date-multiple-fields-blur-and-focus-events-expected.txt: Added. 13 * fast/forms/date-multiple-fields/date-multiple-fields-blur-and-focus-events.html: Added. 14 * fast/forms/date-multiple-fields/date-multiple-fields-keyboard-events-expected.txt: 15 * fast/forms/date-multiple-fields/date-multiple-fields-keyboard-events.html: 16 * fast/forms/date-multiple-fields/date-multiple-fields-mouse-events-expected.txt: Added. 17 * fast/forms/date-multiple-fields/date-multiple-fields-mouse-events.html: Added. 18 * fast/forms/date-multiple-fields/date-multiple-fields-preserve-value-after-history-back-expected.txt: Added. 19 * fast/forms/date-multiple-fields/date-multiple-fields-preserve-value-after-history-back.html: Added. 20 * fast/forms/date-multiple-fields/date-multiple-fields-reset-value-after-reloads-expected.txt: Added. 21 * fast/forms/date-multiple-fields/date-multiple-fields-reset-value-after-reloads.html: Added. 22 * fast/forms/date-multiple-fields/date-multiple-fields-spinbutton-change-and-input-events-expected.txt: Added. 23 * fast/forms/date-multiple-fields/date-multiple-fields-spinbutton-change-and-input-events.html: Copied from LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-change-and-input-events.html. 24 * fast/forms/date-multiple-fields/date-multiple-fields-wheel-event-expected.txt: Added. 25 * fast/forms/date-multiple-fields/date-multiple-fields-wheel-event.html: Copied from LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-change-and-input-events.html. 26 * fast/forms/date/date-reset-value-expected.html: Added. 27 * fast/forms/date/date-reset-value.html: Added. 28 29 * fast/forms/resources/common-spinbutton-change-and-input-events.js: 30 (testSpinButtonChangeAndInputEvents): 31 Uses getElementByPseudoId() to obtain spin button position. The date 32 type and the time type have their spin button at different positions 33 because of a picker indicator triangle. 34 * fast/forms/number/number-spinbutton-change-and-input-events.html: 35 Need to import comon.js because common-spinbutton-change-and-input-events.js depends on it. 36 * fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-change-and-input-events.html: 37 Ditto. 38 39 * fast/forms/resources/common-wheel-event.js: 40 (testWheelEvent): Fix a wrong message. 41 * fast/forms/time-multiple-fields/time-multiple-fields-wheel-event-expected.txt: Ditto. 42 43 * fast/forms/resources/multiple-fields-blur-and-focus-events.js: 44 Added. Move the code from time-multiple-fields-blur-and-focus-events.html. 45 * fast/forms/time-multiple-fields/time-multiple-fields-blur-and-focus-events.html: 46 Moved the code to multiple-fields-blur-and-focus-events.js. 47 48 * platform/chromium/TestExpectations: 49 1 50 2012-10-10 Alexander Pavlov <apavlov@chromium.org> 2 51 -
trunk/LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-keyboard-events-expected.txt
r130835 r130884 56 56 PASS input.value is "2012-01-02" 57 57 PASS input.value is "2012-03-02" 58 == Disabled/readonly == 59 PASS input.value is "2012-10-08" 60 PASS input.value is "2012-11-08" 61 PASS input.value is "2012-11-08" 62 PASS input.value is "2012-12-08" 58 63 PASS successfullyParsed is true 59 64 -
trunk/LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-keyboard-events.html
r130835 r130884 198 198 keyDown('3'); // -> 2012/02/[03] 199 199 shouldBeEqualToString('input.value', '2012-03-02'); 200 201 beginTest('Disabled/readonly', '2012-10-08'); 202 input.disabled = true; 203 keyDown('upArrow'); // 10/08/2012 204 shouldBeEqualToString('input.value', '2012-10-08'); 205 input.disabled = false; 206 input.focus(); 207 keyDown('upArrow'); // [11]/08/2012 208 shouldBeEqualToString('input.value', '2012-11-08'); 209 input.readOnly = true; 210 keyDown('upArrow'); // 11/08/2012 211 shouldBeEqualToString('input.value', '2012-11-08'); 212 input.readOnly = false; 213 input.focus(); 214 keyDown('upArrow'); // [12]/08/2012 215 shouldBeEqualToString('input.value', '2012-12-08'); 216 200 217 </script> 201 218 <script src="../../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-spinbutton-change-and-input-events.html
r130883 r130884 3 3 <head> 4 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../resources/common.js"></script> 5 6 <script src="../resources/common-spinbutton-change-and-input-events.js"></script> 6 7 </head> 7 8 <body> 8 9 <script> 9 testSpinButtonChangeAndInputEvents(' number', '0', '1', '1');10 testSpinButtonChangeAndInputEvents('date', '2012-10-01', '2012-11-01'); 10 11 </script> 11 12 <script src="../../../fast/js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-wheel-event.html
r130883 r130884 3 3 <head> 4 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../resources/common- spinbutton-change-and-input-events.js"></script>5 <script src="../resources/common-wheel-event.js"></script> 6 6 </head> 7 7 <body> 8 8 <script> 9 testSpinButtonChangeAndInputEvents('number', '0', '1', '1'); 9 testWheelEvent({ 10 'inputType' : 'date', 11 'initialValue' : '1999-01-13', 12 'stepUpValue1' : '1999-02-13', 13 'stepUpValue2' : '1999-03-13' }); 10 14 </script> 11 15 <script src="../../../fast/js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/forms/number/number-spinbutton-change-and-input-events.html
r123692 r130884 3 3 <head> 4 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../resources/common.js"></script> 5 6 <script src="../resources/common-spinbutton-change-and-input-events.js"></script> 6 7 </head> -
trunk/LayoutTests/fast/forms/resources/common-spinbutton-change-and-input-events.js
r123692 r130884 31 31 debug('Click the upper button'); 32 32 // Move the cursor on the upper button. 33 eventSender.mouseMoveTo(testInput.offsetLeft + testInput.offsetWidth - 10, testInput.offsetTop + testInput.offsetHeight / 4); 33 var spinButton = getElementByPseudoId(internals.oldestShadowRoot(testInput), "-webkit-inner-spin-button"); 34 eventSender.mouseMoveTo(testInput.offsetLeft + spinButton.offsetLeft, testInput.offsetTop + testInput.offsetHeight / 4); 34 35 eventSender.mouseDown(); 35 36 eventSender.mouseUp(); -
trunk/LayoutTests/fast/forms/resources/common-wheel-event.js
r125747 r130884 21 21 input.focus(); 22 22 23 debug('Initial value is ' + initialValue + '. We\'ll wheel up by ' + stepUpValue1 + ':');23 debug('Initial value is ' + initialValue + '. We\'ll wheel up by 1:'); 24 24 dispatchWheelEvent(input, 0, 1); 25 25 shouldBeEqualToString('input.value', stepUpValue1); -
trunk/LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-blur-and-focus-events.html
r127226 r130884 1 1 <!DOCTYPE html> 2 2 <html> 3 < head>3 <body> 4 4 <script src="../../js/resources/js-test-pre.js"></script> 5 </head> 6 <body> 7 <div id="container"> 8 <input id="before"> 9 <input id="test" type="time" value="12:34"> 10 <input id="after"> 11 </div> 5 <script src="../resources/multiple-fields-blur-and-focus-events.js"></script> 6 <div id="container"></div> 12 7 <script> 13 description('Check blur and focus events for multiple fields time input UI'); 14 15 var blurCounter = 0; 16 var focusCounter = 0; 17 18 function keyDown(key, modifiers) 19 { 20 if (!window.eventSender) 21 return; 22 eventSender.keyDown(key, modifiers); 23 } 24 25 function state() 26 { 27 return 'blur=' + blurCounter + ' focus=' + focusCounter; 28 } 29 30 var testInput = document.getElementById('test'); 31 testInput.addEventListener('blur', function () { ++blurCounter; }); 32 testInput.addEventListener('focus', function () { ++focusCounter; }); 33 34 function beginTestCase(testCaseName) 35 { 36 debug(testCaseName); 37 blurCounter = 0; 38 focusCounter = 0; 39 } 40 41 beginTestCase('focus() and blur()'); 42 shouldBeEqualToString('testInput.focus(); state()', 'blur=0 focus=1'); 43 shouldBeEqualToString('testInput.blur(); state()', 'blur=1 focus=1'); 44 45 if (window.eventSender) { 46 beginTestCase('focus and Tab key to blur'); 47 document.getElementById("before").focus(); 48 shouldBeEqualToString('keyDown("\t"); state()', 'blur=0 focus=1'); 49 shouldBeEqualToString('keyDown("\t"); state()', 'blur=0 focus=1'); 50 shouldBeEqualToString('keyDown("\t"); state()', 'blur=0 focus=1'); 51 shouldBeEqualToString('keyDown("\t"); state()', 'blur=1 focus=1'); 52 } else { 53 debug('Please run in DumpRenderTree for focus and Tab-key test case'); 54 } 55 56 debug(''); 57 document.body.removeChild(document.getElementById("container")); 8 startTestFor('time'); 58 9 </script> 59 10 <script src="../../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-change-and-input-events.html
r125867 r130884 3 3 <head> 4 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../resources/common.js"></script> 5 6 <script src="../resources/common-spinbutton-change-and-input-events.js"></script> 6 7 </head> -
trunk/LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-wheel-event-expected.txt
r125754 r130884 4 4 5 5 6 Initial value is 07:00. We'll wheel up by 08:00:6 Initial value is 07:00. We'll wheel up by 1: 7 7 PASS input.value is "08:00" 8 8 Wheel up by 100: -
trunk/LayoutTests/platform/chromium/TestExpectations
r130868 r130884 3888 3888 3889 3889 webkit.org/b/96720 [ Mac Win ] fast/forms/time-multiple-fields/time-multiple-fields-preserve-value-after-history-back.html [ Pass Timeout ] 3890 webkit.org/b/96720 [ Mac Win ] fast/forms/date-multiple-fields/date-multiple-fields-preserve-value-after-history-back.html [ Pass Timeout ] 3891 3890 3892 webkit.org/b/96549 [ Mac ] platform/chromium/virtual/gpu/fast/hidpi/focus-rings.html [ ImageOnlyFailure ] 3891 3893 webkit.org/b/96549 [ Mac ] platform/chromium/virtual/gpu/fast/hidpi/video-controls-in-hidpi.html [ ImageOnlyFailure ]
Note: See TracChangeset
for help on using the changeset viewer.