Chromium Code Reviews| Index: LayoutTests/fast/events/click-with-large-negative-text-indent.html |
| diff --git a/LayoutTests/fast/events/click-with-large-negative-text-indent.html b/LayoutTests/fast/events/click-with-large-negative-text-indent.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5cb8f232d5c9bd2b4fb829178b5daa89c859dab3 |
| --- /dev/null |
| +++ b/LayoutTests/fast/events/click-with-large-negative-text-indent.html |
| @@ -0,0 +1,30 @@ |
| +<html> |
| +<head> |
| +<script> |
| +function test() |
| +{ |
| + if (window.testRunner) { |
| + testRunner.dumpAsText(); |
|
tkent
2013/11/22 05:11:55
We should call dumpAsText earlier.
e.g.
<script>
|
| + testRunner.waitUntilDone(); |
|
tkent
2013/11/22 05:11:55
Calling waitUntilDone() and noifyDone() in one fun
|
| + } |
| + if (window.eventSender) { |
| + var testEle = document.getElementById('testButton'); |
| + eventSender.mouseMoveTo(testEle.offsetLeft+testEle.offsetWidth/2, testEle.offsetTop+testEle.offsetHeight/2); |
|
tkent
2013/11/22 05:11:55
Need spaces around '+' and '/'
|
| + eventSender.mouseDown(); |
| + eventSender.mouseUp(); |
| + } |
| + testRunner.notifyDone(); |
| +} |
| + |
| +function btnClicked() |
| +{ |
| + document.getElementById('output').innerHTML = "Button is clicked."; |
| +} |
| +</script> |
| +</head> |
| +<body onload="test()"> |
| +<button id="testButton" style="text-indent: -99999999px;" href="#none" onclick="btnClicked()" title="newWindow">Move</button> |
| +<p id="output"> |
| +</p> |
| +</body> |
| +</html> |