blob: 22c94c5c48cfb3c63b2141a4065b7b187abe70ba [file] [log] [blame]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<p>
Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11916">http://bugs.webkit.org/show_bug.cgi?id=11916</a>
REGRESSION (SearchField): RTL search fields are mixed up</i>.
</p>
<p>
<input type="search" dir="rtl" results="5" value="הוא זה he והיא זה she וזהו">
<br>
<input type="search" dir="rtl" size="30" results="5" value="הוא זה he והיא זה she וזהו">
<br>
<input id="target" type="search" dir="rtl" results="5" value="click the (x) button">
</p>
<p id="result">
Clicking the (x) button should clear the field.
</p>
<script>
if (window.eventSender) {
var target = document.getElementById("target");
var x = target.offsetLeft + target.offsetWidth - 6;
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";
}
</script>
</body>
</html>