1 <h1>BUG
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=79754">79754</a>[Forms] Spin button sometimes ignores Indeterminate of m_upDownState
</h1>
3 <input id=
"num1" type=
"number" value=
"0">
5 <h2>Manualt test steps
</h2>
7 <li>Invoke browser with specifying screen position where moust pointer on the spin button.
</li>
8 <li>Click left mouse button without moving mouse pointer.
</li>
9 <li>Value should not be changed.
</li>
14 var logs
= document
.getElementById("logs");
15 function log(msg
) { logs
.innerHTML
+= msg
+ "<br>"; }
18 testRunner
.dumpAsText();
20 var outer
= document
.getElementById("outer");
22 var num1
= document
.getElementById("num1");
23 var mouseX
= num1
.offsetLeft
+ num1
.offsetWidth
- 5;
24 var mouseY
= num1
.offsetTop
+ 5;
25 eventSender
.mouseMoveTo(mouseX
, mouseY
);
27 // Re-construct input element.
28 var ctrlHtml
= outer
.innerHTML
;
30 outer
.innerHTML
= ctrlHtml
;
32 var num2
= document
.getElementById("num1");
33 eventSender
.mouseDown();
34 log("expect 0, actual=" + num2
.value
);
35 eventSender
.mouseUp();
37 // Move mouse pointer but still in spin button.
38 eventSender
.mouseMoveTo(mouseX
, mouseY
- 1);
39 eventSender
.mouseDown();
40 log("expect 1, actual=" + num2
.value
);
43 if (window
.testRunner
) {