Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / number / number-spinbutton-state.html
blob37421a0239891ede10efb48f400bc5c31b86bcad
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>
2 <div id="outer">
3 <input id="num1" type="number" value="0">
4 </div>
5 <h2>Manualt test steps</h2>
6 <ol>
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>
10 </ol>
11 <h2>Result</h2>
12 <div id="logs"></div>
13 <script>
14 var logs = document.getElementById("logs");
15 function log(msg) { logs.innerHTML += msg + "<br>"; }
17 function testIt() {
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;
29 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) {
44 testIt();
46 </script>