blob: fa0dcff291b1e3953a4144d589ce11f6c2293a13 [file] [log] [blame]
<html>
<head>
<title>Search Field with Transform</title>
<script type="text/javascript" charset="utf-8">
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
</head>
<body>
<p>
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=24503">https://bugs.webkit.org/show_bug.cgi?id=24503</a>:<br>
Can't click the clear button of an absolutely positioned search field.
</p>
<input type="search" id="target" results="5" value="Search me" style="position: absolute; left: 50px; top: 50px;">
<p id="result" style="margin-top: 60px;">
Clicking the (x) button should clear the field.
</p>
<script>
if (window.eventSender) {
var target = document.getElementById("target");
var x = target.offsetLeft + target.offsetWidth - 4;
var y = target.offsetTop + target.offsetHeight / 2;
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();
eventSender.mouseUp();
var result = document.getElementById("result");
if (target.value == "")
result.innerText = "PASS";
else
result.innerText = "FAIL";
target.value = "Some other text";
}
</script>
</body>
</html>