3 <title>Search Field with Transform
</title>
4 <script src=
"resources/common.js"></script>
5 <script type=
"text/javascript" charset=
"utf-8">
7 testRunner.dumpAsText();
12 Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=24503">https://bugs.webkit.org/show_bug.cgi?id=
24503</a>:
<br>
13 Can't click the clear button of an absolutely positioned search field.
15 <input type=
"search" id=
"target" results=
"5" value=
"Search me" style=
"position: absolute; left: 50px; top: 50px;">
16 <p id=
"result" style=
"margin-top: 60px;">
17 Clicking the (x) button should clear the field.
20 if (window
.eventSender
) {
21 var target
= document
.getElementById("target");
22 var cancelPos
= searchCancelButtonPosition(target
);
23 eventSender
.mouseMoveTo(cancelPos
.x
, cancelPos
.y
);
24 eventSender
.mouseDown();
25 eventSender
.mouseUp();
26 var result
= document
.getElementById("result");
27 if (target
.value
== "")
28 result
.innerText
= "PASS";
30 result
.innerText
= "FAIL";
32 target
.value
= "Some other text";