3 <meta http-equiv=
"content-type" content=
"text/html; charset=UTF-8">
4 <title>Search Field with Transform
</title>
5 <style type=
"text/css" media=
"screen">
10 <script src=
"resources/common.js"></script>
14 Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=24733">https://bugs.webkit.org/show_bug.cgi?id=
24733</a>:
<br>
15 Tests event handling on search fields with zoom.
18 <input type=
"search" id=
"target" results=
"5" value=
"Search me">
20 <p id=
"result" style=
"margin-top: 60px">
21 Clicking the (x) button should clear the field.
24 if (window
.testRunner
)
25 testRunner
.dumpAsText();
26 if (window
.eventSender
) {
27 var target
= document
.getElementById("target");
28 var cancelPos
= searchCancelButtonPosition(target
);
29 eventSender
.mouseMoveTo(cancelPos
.x
* 1.2, cancelPos
.y
* 1.2);
30 eventSender
.mouseDown();
31 eventSender
.mouseUp();
32 var result
= document
.getElementById("result");
33 if (target
.value
== "")
34 result
.innerText
= "PASS";
36 result
.innerText
= "FAIL";
38 target
.value
= "Some other text";