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

Unified Diff: LayoutTests/fast/forms/calendar-picker/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: Patch for landing 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/calendar-picker/datepicker-crash-after-keydown-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/calendar-picker/datepicker-crash-after-keydown.html
diff --git a/LayoutTests/fast/forms/calendar-picker/datepicker-crash-after-keydown.html b/LayoutTests/fast/forms/calendar-picker/datepicker-crash-after-keydown.html
new file mode 100644
index 0000000000000000000000000000000000000000..e730307a076734b29038e45ffa10e0b2f707e442
--- /dev/null
+++ b/LayoutTests/fast/forms/calendar-picker/datepicker-crash-after-keydown.html
@@ -0,0 +1,19 @@
+<input id="month" type="month"</div>
+<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>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/calendar-picker/datepicker-crash-after-keydown-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698