Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: LayoutTests/fast/forms/search-rtl.html

Issue 27323002: make input type="search" RTL direction aware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698