Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / date / date-stepup-stepdown-from-renderer.html
blob50dcb449f671f1dd683ac9f88c1f1c05d8999723
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description('Check if stepping-up and -down for date input fields from renderer does not work.');
12 var input = document.createElement('input');
14 function sendKey(keyName) {
15 var event = document.createEvent('KeyboardEvent');
16 event.initKeyboardEvent('keydown', true, true, document.defaultView, keyName);
17 input.dispatchEvent(event);
20 function stepUp(value, step, max, optionalStepCount) {
21 input.value = value;
22 sendKey('Up');
23 return input.value;
26 function stepDown(value, step, min, optionalStepCount) {
27 input.value = value;
28 sendKey('Down');
29 return input.value;
32 input.type = 'date';
33 shouldBe('stepUp("2010-02-10")', '"2010-02-10"');
34 // The following check was disabled because it tries to open a calendar picker and DRT crashes.
35 //shouldBe('stepDown("2010-02-10")', '"2010-02-10"');
37 debug('');
38 </script>
39 </body>
40 </html>