Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: LayoutTests/fast/forms/datepicker-crash-after-keydown.html

Issue 419053005: Fix crash in HTMLInputElement::setupDateTimeChooserParameters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/datepicker-crash-after-keydown.html
diff --git a/LayoutTests/fast/forms/datepicker-crash-after-keydown.html b/LayoutTests/fast/forms/datepicker-crash-after-keydown.html
new file mode 100644
index 0000000000000000000000000000000000000000..a00b88710015e8c170ece125d7ee57e533ce3461
--- /dev/null
+++ b/LayoutTests/fast/forms/datepicker-crash-after-keydown.html
@@ -0,0 +1,19 @@
+ <input id="month" type="month"</div>
tkent 2014/07/30 23:19:57 - The top level indentation is not helpful. - Plea
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ }
+ function openPicker(input) {
+ sendKey(input, "Down", false, true);
+ finishTest();
+ }
+ 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);
+ }
+ openPicker(document.getElementById('month'), finishTest);
+ function finishTest() {
+ document.body.innerText = 'PASS (not crashed)';
+ }
+ </script>

Powered by Google App Engine
This is Rietveld 408576698