4 <script src=
"../../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
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
) {
26 function stepDown(value
, step
, min
, optionalStepCount
) {
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"');