4 <p>This test ensures WebKit fires mousedown event on a disabled input element.
</p>
5 <span><input id=
"test" type=
"text" disabled
></span>
6 <div id=
"log">FAIL
</div>
10 testRunner
.dumpAsText();
12 function clickOn(element
)
14 var x
= element
.offsetLeft
+ element
.offsetWidth
/ 2;
15 var y
= element
.offsetTop
+ element
.offsetHeight
/ 2;
16 eventSender
.mouseMoveTo(x
, y
);
17 eventSender
.mouseDown();
18 eventSender
.mouseUp();
21 var test
= document
.getElementById('test');
22 test
.parentNode
.addEventListener('mousedown', function () { document
.getElementById('log').textContent
= 'PASS'; }, false);
24 if (window
.eventSender
)