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

Side by Side Diff: LayoutTests/editing/selection/move-left-right.html

Issue 6911017: Merge 84919 - 2011-04-26 Ryosuke Niwa <rniwa@webkit.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months 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
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/editing/selection/move-left-right-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <head> 1 <head>
2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3 <style> 3 <style>
4 div.test { 4 div.test {
5 -webkit-user-modify: read-write; 5 -webkit-user-modify: read-write;
6 padding: 4px; 6 padding: 4px;
7 border: 1px dashed lightblue; 7 border: 1px dashed lightblue;
8 margin: 4px 4px 4px 24px; 8 margin: 4px 4px 4px 24px;
9 outline: none; 9 outline: none;
10 font-family: Lucida Grande; 10 font-family: Lucida Grande;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 break; 47 break;
48 }; 48 };
49 return positions; 49 return positions;
50 } 50 }
51 51
52 function fold(string) 52 function fold(string)
53 { 53 {
54 var result = ""; 54 var result = "";
55 for (var i = 0; i < string.length; ++i) { 55 for (var i = 0; i < string.length; ++i) {
56 var char = string.charCodeAt(i); 56 var char = string.charCodeAt(i);
57 if (char >= 0x05d0) 57 if (char >= 0x0660) // Arabic numeral 0
58 char = char - 0x660 + '0'.charCodeAt(0);
59 else if (char >= 0x0627) // Alif
60 char = char - 0x0627 + 'A'.charCodeAt(0);
61 else if (char >= 0x05d0)
58 char -= 0x058f; 62 char -= 0x058f;
59 else if (char == 10) { 63 else if (char == 10) {
60 result += "\\n"; 64 result += "\\n";
61 continue; 65 continue;
62 } 66 }
63 result += String.fromCharCode(char); 67 result += String.fromCharCode(char);
64 } 68 }
65 return result; 69 return result;
66 } 70 }
67 71
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 </div> 214 </div>
211 215
212 <div class="test"> 216 <div class="test">
213 abcאבגדהו 217 abcאבגדהו
214 </div> 218 </div>
215 219
216 <div class="test"> 220 <div class="test">
217 אבגabcdef 221 אבגabcdef
218 </div> 222 </div>
219 223
224 <div class="test">١٢٣ابة</div>
225
226 <div class="test">ابة١٢٣</div>
227
220 <div class="test"> 228 <div class="test">
221 <span>abc</span>אבגdef 229 <span>abc</span>אבגdef
222 </div> 230 </div>
223 231
224 <div class="test"> 232 <div class="test">
225 <span>אבג</span>abcדהו 233 <span>אבג</span>abcדהו
226 </div> 234 </div>
227 235
228 <div class="test">abcאבג123דהוdef 236 <div class="test">abcאבג123דהוdef
229 </div> 237 </div>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 <div class="test"> 344 <div class="test">
337 אבגa<span>bcדהו</span> 345 אבגa<span>bcדהו</span>
338 </div> 346 </div>
339 347
340 <div class="test" style="white-space: pre;">abc<!-- --> 348 <div class="test" style="white-space: pre;">abc<!-- -->
341 <!-- -->def</div> 349 <!-- -->def</div>
342 350
343 <div class="test" style="white-space: pre;">אבג<!-- --> 351 <div class="test" style="white-space: pre;">אבג<!-- -->
344 <!-- -->דהו</div> 352 <!-- -->דהו</div>
345 353
354 <div class="test">
355 <span dir="rtl">abcקקק123נננdef</span>
346 </div> 356 </div>
347 357
348 </div> 358 </div>
349 359
350 <pre id="console"></pre> 360 <pre id="console"></pre>
351 </body> 361 </body>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/editing/selection/move-left-right-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698