OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | 3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
4 <script src="resources/common.js"></script> | 4 <script src="resources/common.js"></script> |
5 <title></title> | 5 <title></title> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p> | 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> | 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>. | 10 REGRESSION (SearchField): RTL search fields are mixed up</i>. |
11 </p> | 11 </p> |
12 <p> | 12 <p> |
13 <input type="search" dir="rtl" results="5" value="הוא זה he והיא זה she
וזהו"> | 13 <input type="search" dir="rtl" results="5" value="הוא זה he והיא זה she
וזהו"> |
14 <br> | 14 <br> |
15 <input type="search" dir="rtl" size="30" results="5" value="הוא זה he וה
יא זה she וזהו"> | 15 <input type="search" dir="rtl" size="30" results="5" value="הוא זה he וה
יא זה she וזהו"> |
16 <br> | 16 <br> |
17 <input id="target" type="search" dir="rtl" results="5" value="click the
(x) button"> | 17 <input id="target" type="search" dir="rtl" results="5" value="click the
(x) button"> |
18 </p> | 18 </p> |
19 <p id="result"> | 19 <p id="result"> |
20 Clicking the (x) button should clear the field. | 20 Clicking the (x) button should clear the field. |
21 </p> | 21 </p> |
22 <script> | 22 <script> |
23 if (window.eventSender) { | 23 if (window.eventSender) { |
24 var target = $("target"); | 24 var target = $("target"); |
25 var pos = searchCancelButtonPosition(target); | 25 var pos = searchCancelButtonPositionRTL(target); |
26 eventSender.mouseMoveTo(pos.x, pos.y); | 26 eventSender.mouseMoveTo(pos.x, pos.y); |
27 eventSender.mouseDown(); | 27 eventSender.mouseDown(); |
28 eventSender.mouseUp(); | 28 eventSender.mouseUp(); |
29 var result = $("result"); | 29 var result = $("result"); |
30 if (target.value == "") | 30 if (target.value == "") |
31 result.innerText = "PASS"; | 31 result.innerText = "PASS"; |
32 else | 32 else |
33 result.innerText = "FAIL"; | 33 result.innerText = "FAIL"; |
34 } | 34 } |
35 </script> | 35 </script> |
36 </body> | 36 </body> |
37 </html> | 37 </html> |
OLD | NEW |