Title: [141968] trunk/LayoutTests
- Revision
- 141968
- Author
- [email protected]
- Date
- 2013-02-05 21:49:41 -0800 (Tue, 05 Feb 2013)
Log Message
[Chromium] Split calendar-picker-key-operations.html into two
https://bugs.webkit.org/show_bug.cgi?id=109006
Reviewed by Kentaro Hara.
Split calendar-picker-key-operations.html into two parts:
- OS-independent part (calendar-picker-key-operations.html), and
- OS-dependent part (calendar-picker-f4-key.html).
We had some troubles when we updated calendar-picker-key-operations.html
because the behavior by F4 key is OS-dependent. We move the test for F4
key to new test.
* platform/chromium-mac/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt:
Added. It is expected that this contains FAIL line because we don't
support the F4 key behavior on OSX.
* platform/chromium-win/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations-expected.txt:
Removed. Now the result of calendar-picker-key-operations.html is OS-independent.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt: Added.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key.html:
Added. Move from calendar-picker-key-operations.html.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations.html:
Move the F4 key part to calendar-picker-f4-key.html.
Modified Paths
Added Paths
Removed Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (141967 => 141968)
--- trunk/LayoutTests/ChangeLog 2013-02-06 05:16:59 UTC (rev 141967)
+++ trunk/LayoutTests/ChangeLog 2013-02-06 05:49:41 UTC (rev 141968)
@@ -1,3 +1,29 @@
+2013-02-05 Kent Tamura <[email protected]>
+
+ [Chromium] Split calendar-picker-key-operations.html into two
+ https://bugs.webkit.org/show_bug.cgi?id=109006
+
+ Reviewed by Kentaro Hara.
+
+ Split calendar-picker-key-operations.html into two parts:
+ - OS-independent part (calendar-picker-key-operations.html), and
+ - OS-dependent part (calendar-picker-f4-key.html).
+
+ We had some troubles when we updated calendar-picker-key-operations.html
+ because the behavior by F4 key is OS-dependent. We move the test for F4
+ key to new test.
+
+ * platform/chromium-mac/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt:
+ Added. It is expected that this contains FAIL line because we don't
+ support the F4 key behavior on OSX.
+ * platform/chromium-win/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations-expected.txt:
+ Removed. Now the result of calendar-picker-key-operations.html is OS-independent.
+ * platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt: Added.
+ * platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key.html:
+ Added. Move from calendar-picker-key-operations.html.
+ * platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations.html:
+ Move the F4 key part to calendar-picker-f4-key.html.
+
2013-02-05 Julien Chaffraix <[email protected]>
[CSS Grid Layout] Grid item's logical height is not properly recomputed after -webkit-grid-column / -webkit-grid-row changes
Added: trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt (0 => 141968)
--- trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt 2013-02-06 05:49:41 UTC (rev 141968)
@@ -0,0 +1,12 @@
+Tests if calendar picker key bindings work as expected.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Check that page popup doesn't exist at first.
+PASS document.getElementById("mock-page-popup") is null
+PASS document.getElementById("mock-page-popup") is non-null.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key.html (0 => 141968)
--- trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key.html (rev 0)
+++ trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key.html 2013-02-06 05:49:41 UTC (rev 141968)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src=""
+<p id="description"></p>
+<div id="console"></div>
+<input type="date" id="date1" value="2000-01-02">
+<script>
+description("Tests if calendar picker key bindings work as expected.");
+if (window.internals)
+ internals.setEnableMockPagePopup(true);
+var date1 = document.getElementById('date1');
+date1.offsetTop; // date1 needs to have non-empty bound rectangle.
+debug('Check that page popup doesn\'t exist at first.');
+shouldBeNull('document.getElementById("mock-page-popup")');
+
+var event = document.createEvent('KeyboardEvent');
+event.initKeyboardEvent('keydown', true, true, document.defaultView, 'F4');
+date1.dispatchEvent(event);
+shouldBeNonNull('document.getElementById("mock-page-popup")');
+</script>
+<script src=""
+</body>
+</html>
Modified: trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations.html (141967 => 141968)
--- trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations.html 2013-02-06 05:16:59 UTC (rev 141967)
+++ trunk/LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations.html 2013-02-06 05:49:41 UTC (rev 141968)
@@ -118,10 +118,6 @@
shouldBeNull('document.getElementById("mock-page-popup")');
shouldBe('document.getElementById("date").value', '"1999-12-26"');
- sendKey(document.getElementById('date'), "F4");
- if (document.getElementById('mock-page-popup'))
- testPassed("F4 opened picker.");
-
finishJSTest();
}
Added: trunk/LayoutTests/platform/chromium-mac/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt (0 => 141968)
--- trunk/LayoutTests/platform/chromium-mac/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium-mac/platform/chromium/fast/forms/calendar-picker/calendar-picker-f4-key-expected.txt 2013-02-06 05:49:41 UTC (rev 141968)
@@ -0,0 +1,12 @@
+Tests if calendar picker key bindings work as expected.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Check that page popup doesn't exist at first.
+PASS document.getElementById("mock-page-popup") is null
+FAIL document.getElementById("mock-page-popup") should be non-null. Was null
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Deleted: trunk/LayoutTests/platform/chromium-win/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations-expected.txt (141967 => 141968)
--- trunk/LayoutTests/platform/chromium-win/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations-expected.txt 2013-02-06 05:16:59 UTC (rev 141967)
+++ trunk/LayoutTests/platform/chromium-win/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations-expected.txt 2013-02-06 05:49:41 UTC (rev 141968)
@@ -1,60 +0,0 @@
-Tests if calendar picker key bindings work as expected.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-Check that page popup doesn't exist at first.
-PASS document.getElementById("mock-page-popup") is null
-Check that page popup exists.
-PASS popupWindow.pagePopupController.toString() is "[object PagePopupController]"
-PASS selectedDate() is "2000-01-02"
-PASS currentMonth() is "2000-01"
-Check that arrow keys work properly even when going between weeks and months.
-PASS selectedDate() is "1999-12-26"
-PASS currentMonth() is "2000-01"
-PASS selectedDate() is "2000-01-02"
-PASS currentMonth() is "1999-12"
-PASS selectedDate() is "1999-12-26"
-PASS currentMonth() is "2000-01"
-PASS selectedDate() is "2000-01-02"
-PASS currentMonth() is "2000-01"
-PASS selectedDate() is "1999-12-26"
-PASS currentMonth() is "2000-01"
-PASS selectedDate() is "2000-01-08"
-PASS currentMonth() is "1999-12"
-PASS selectedDate() is "1999-12-26"
-PASS currentMonth() is "2000-01"
-press m
-PASS selectedDate() is "2000-01-30"
-PASS currentMonth() is "2000-02"
-press shift + m
-PASS selectedDate() is "1999-12-26"
-PASS currentMonth() is "2000-01"
-press y
-PASS selectedDate() is "2000-12-31"
-PASS currentMonth() is "2001-01"
-press shift + y
-PASS selectedDate() is "1999-12-26"
-PASS currentMonth() is "2000-01"
-press d
-PASS selectedDate() is "2009-12-27"
-PASS currentMonth() is "2010-01"
-press shift + d
-PASS selectedDate() is "1999-12-26"
-PASS currentMonth() is "2000-01"
-PASS document.getElementById("mock-page-popup") is null
-PASS document.getElementById("date").value is "1999-12-26"
-PASS testToday() || testToday() is true
-Check if tabbing works.
-PASS focusedElement() is ".days-area-container"
-PASS focusedElement() is ".today-button[value=<<CalendarToday>>]"
-PASS focusedElement() is ".clear-button[value=<<CalendarClear>>]"
-PASS focusedElement() is ".year-month-button"
-PASS focusedElement() is ".clear-button[value=<<CalendarClear>>]"
-PASS document.getElementById("mock-page-popup") is null
-PASS document.getElementById("date").value is "1999-12-26"
-PASS F4 opened picker.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes