Diff
Modified: trunk/LayoutTests/ChangeLog (145316 => 145317)
--- trunk/LayoutTests/ChangeLog 2013-03-09 12:43:22 UTC (rev 145316)
+++ trunk/LayoutTests/ChangeLog 2013-03-09 12:45:28 UTC (rev 145317)
@@ -1,5 +1,21 @@
2013-03-09 Keishi Hattori <[email protected]>
+ Add tests for opening the picker with the f4 key
+ https://bugs.webkit.org/show_bug.cgi?id=111811
+
+ Reviewed by Kent Tamura.
+
+ * platform/chromium-win/fast/forms/calendar-picker/date-open-picker-with-f4-key-expected.txt: Added.
+ * platform/chromium-win/fast/forms/calendar-picker/date-open-picker-with-f4-key.html: Added.
+ * platform/chromium-win/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key-expected.txt: Added.
+ * platform/chromium-win/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key.html: Added.
+ * platform/chromium-win/fast/forms/calendar-picker/month-open-picker-with-f4-key-expected.txt: Added.
+ * platform/chromium-win/fast/forms/calendar-picker/month-open-picker-with-f4-key.html: Added.
+ * platform/chromium-win/fast/forms/calendar-picker/week-open-picker-with-f4-key-expected.txt: Added.
+ * platform/chromium-win/fast/forms/calendar-picker/week-open-picker-with-f4-key.html: Added.
+
+2013-03-09 Keishi Hattori <[email protected]>
+
Month transition animation is missing in some places
https://bugs.webkit.org/show_bug.cgi?id=111908
Added: trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/date-open-picker-with-f4-key-expected.txt (0 => 145317)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/date-open-picker-with-f4-key-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/date-open-picker-with-f4-key-expected.txt 2013-03-09 12:45:28 UTC (rev 145317)
@@ -0,0 +1,13 @@
+Tests if pressing F4 opens the calendar picker.
+
+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
+Press F4 key.
+PASS document.getElementById("mock-page-popup") is non-null.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/date-open-picker-with-f4-key.html (0 => 145317)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/date-open-picker-with-f4-key.html (rev 0)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/date-open-picker-with-f4-key.html 2013-03-09 12:45:28 UTC (rev 145317)
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=""
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<input type=date id=test>
+<script>
+if (window.internals)
+ internals.setEnableMockPagePopup(true);
+
+description("Tests if pressing F4 opens the calendar picker.");
+
+debug('Check that page popup doesn\'t exist at first.');
+shouldBeNull('document.getElementById("mock-page-popup")');
+
+debug('Press F4 key.');
+sendKey(document.getElementById('test'), 'F4');
+shouldBeNonNull('document.getElementById("mock-page-popup")');
+
+function sendKey(input, keyName, ctrlKey, altKey) {
+ var event = document.createEvent('KeyboardEvent');
+ event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName, 0, ctrlKey, altKey);
+ input.dispatchEvent(event);
+}
+</script>
+<script src=""
+</body>
+</html>
Added: trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key-expected.txt (0 => 145317)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key-expected.txt 2013-03-09 12:45:28 UTC (rev 145317)
@@ -0,0 +1,13 @@
+Tests if pressing F4 opens the calendar picker.
+
+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
+Press F4 key.
+PASS document.getElementById("mock-page-popup") is non-null.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key.html (0 => 145317)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key.html (rev 0)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/datetimelocal-open-picker-with-f4-key.html 2013-03-09 12:45:28 UTC (rev 145317)
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=""
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<input type=datetime-local id=test>
+<script>
+if (window.internals)
+ internals.setEnableMockPagePopup(true);
+
+description("Tests if pressing F4 opens the calendar picker.");
+
+debug('Check that page popup doesn\'t exist at first.');
+shouldBeNull('document.getElementById("mock-page-popup")');
+
+debug('Press F4 key.');
+sendKey(document.getElementById('test'), 'F4');
+shouldBeNonNull('document.getElementById("mock-page-popup")');
+
+function sendKey(input, keyName, ctrlKey, altKey) {
+ var event = document.createEvent('KeyboardEvent');
+ event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName, 0, ctrlKey, altKey);
+ input.dispatchEvent(event);
+}
+</script>
+<script src=""
+</body>
+</html>
Added: trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/month-open-picker-with-f4-key-expected.txt (0 => 145317)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/month-open-picker-with-f4-key-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/month-open-picker-with-f4-key-expected.txt 2013-03-09 12:45:28 UTC (rev 145317)
@@ -0,0 +1,13 @@
+Tests if pressing F4 opens the calendar picker.
+
+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
+Press F4 key.
+PASS document.getElementById("mock-page-popup") is non-null.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/month-open-picker-with-f4-key.html (0 => 145317)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/month-open-picker-with-f4-key.html (rev 0)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/month-open-picker-with-f4-key.html 2013-03-09 12:45:28 UTC (rev 145317)
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=""
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<input type=month id=test>
+<script>
+if (window.internals)
+ internals.setEnableMockPagePopup(true);
+
+description("Tests if pressing F4 opens the calendar picker.");
+
+debug('Check that page popup doesn\'t exist at first.');
+shouldBeNull('document.getElementById("mock-page-popup")');
+
+debug('Press F4 key.');
+sendKey(document.getElementById('test'), 'F4');
+shouldBeNonNull('document.getElementById("mock-page-popup")');
+
+function sendKey(input, keyName, ctrlKey, altKey) {
+ var event = document.createEvent('KeyboardEvent');
+ event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName, 0, ctrlKey, altKey);
+ input.dispatchEvent(event);
+}
+</script>
+<script src=""
+</body>
+</html>
Added: trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/week-open-picker-with-f4-key-expected.txt (0 => 145317)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/week-open-picker-with-f4-key-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/week-open-picker-with-f4-key-expected.txt 2013-03-09 12:45:28 UTC (rev 145317)
@@ -0,0 +1,13 @@
+Tests if pressing F4 opens the calendar picker.
+
+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
+Press F4 key.
+PASS document.getElementById("mock-page-popup") is non-null.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Added: trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/week-open-picker-with-f4-key.html (0 => 145317)
--- trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/week-open-picker-with-f4-key.html (rev 0)
+++ trunk/LayoutTests/platform/chromium-win/fast/forms/calendar-picker/week-open-picker-with-f4-key.html 2013-03-09 12:45:28 UTC (rev 145317)
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src=""
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<input type=week id=test>
+<script>
+if (window.internals)
+ internals.setEnableMockPagePopup(true);
+
+description("Tests if pressing F4 opens the calendar picker.");
+
+debug('Check that page popup doesn\'t exist at first.');
+shouldBeNull('document.getElementById("mock-page-popup")');
+
+debug('Press F4 key.');
+sendKey(document.getElementById('test'), 'F4');
+shouldBeNonNull('document.getElementById("mock-page-popup")');
+
+function sendKey(input, keyName, ctrlKey, altKey) {
+ var event = document.createEvent('KeyboardEvent');
+ event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName, 0, ctrlKey, altKey);
+ input.dispatchEvent(event);
+}
+</script>
+<script src=""
+</body>
+</html>