1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
8 description('Test for a capturing spec change to consider .2 as valid real number for step');
10 var parent
= document
.createElement('div');
11 document
.body
.appendChild(parent
);
12 parent
.innerHTML
= '<input type=number id=number value=0 step=".5">';
13 var numberInput
= document
.getElementById('number');
16 if (window
.eventSender
) {
17 // Move the cursor on the upper button of the input field.
18 eventSender
.mouseMoveTo(numberInput
.offsetLeft
+ numberInput
.offsetWidth
- 10, numberInput
.offsetTop
+ numberInput
.offsetHeight
/ 4);
20 eventSender
.mouseDown();
21 eventSender
.mouseUp();
22 shouldBe('numberInput.value', '"0.5"');
24 parent
.innerHTML
= '';
26 document
.getElementById('console').innerHTML
= '<p>No eventSender. <p>Manual test instruction: Click the upper button of the input field. Confirm that the input field value is 0.5';