Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / search-rtl.html
blob5b2b19d8c78ed6b5d473d2717cabe215659a88a7
1 <html>
2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
4 <script src="resources/common.js"></script>
5 <title></title>
6 </head>
7 <body>
8 <p>
9 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=11916">http://bugs.webkit.org/show_bug.cgi?id=11916</a>
10 REGRESSION (SearchField): RTL search fields are mixed up</i>.
11 </p>
12 <p>
13 <input type="search" dir="rtl" results="5" value="הוא זה he והיא זה she וזהו">
14 <br>
15 <input type="search" dir="rtl" size="30" results="5" value="הוא זה he והיא זה she וזהו">
16 <br>
17 <input id="target" type="search" dir="rtl" results="5" value="click the (x) button">
18 </p>
19 <p id="result">
20 Clicking the (x) button should clear the field.
21 </p>
22 <script>
23 if (window.eventSender) {
24 var target = $("target");
25 var pos = searchCancelButtonPosition(target);
26 eventSender.mouseMoveTo(pos.x, pos.y);
27 eventSender.mouseDown();
28 eventSender.mouseUp();
29 var result = $("result");
30 if (target.value == "")
31 result.innerText = "PASS";
32 else
33 result.innerText = "FAIL";
35 </script>
36 </body>
37 </html>