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

Side by Side Diff: LayoutTests/editing/execCommand/insert-image-on-top-of-directional-text.html

Issue 217003006: Remove carriage returns from LayoutTests (01) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix caret-and-focus-ring Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <div>This test uses execCommand('insertImage') to replace the selection in a va riety of mixed directionality text. If this doesn't crash, then the test passes .</div> 1 <div>This test uses execCommand('insertImage') to replace the selection in a va riety of mixed directionality text. If this doesn't crash, then the test passes .</div>
2 <div dir='rtl' id='rtl1' style='white-space:pre' contentEditable>the </div> 2 <div dir='rtl' id='rtl1' style='white-space:pre' contentEditable>the </div>
3 <div dir='rtl' id='rtl2' style='white-space:pre' contentEditable>אחת </div> 3 <div dir='rtl' id='rtl2' style='white-space:pre' contentEditable>אחת </div>
4 <div dir='ltr' id='ltr1' style='white-space:pre' contentEditable>the </div> 4 <div dir='ltr' id='ltr1' style='white-space:pre' contentEditable>the </div>
5 <div dir='ltr' id='ltr2' style='white-space:pre' contentEditable>אחת </div> 5 <div dir='ltr' id='ltr2' style='white-space:pre' contentEditable>אחת </div>
6 <script> 6 <script>
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 9
10 // Select only "the", not the space, LTR text in RTL region. 10 // Select only "the", not the space, LTR text in RTL region.
11 document.getSelection().setBaseAndExtent(rtl1.firstChild, 0, rtl1.firstChild, 3) ; 11 document.getSelection().setBaseAndExtent(rtl1.firstChild, 0, rtl1.firstChild, 3) ;
12 document.execCommand('InsertImage', false, "../resources/abe.png"); 12 document.execCommand('InsertImage', false, "../resources/abe.png");
13 // Select only "אחת", not the space, RTL text in RTL region. 13 // Select only "אחת", not the space, RTL text in RTL region.
14 document.getSelection().setBaseAndExtent(rtl2.firstChild, 0, rtl2.firstChild, 3) ; 14 document.getSelection().setBaseAndExtent(rtl2.firstChild, 0, rtl2.firstChild, 3) ;
15 document.execCommand('InsertImage', false, "../resources/abe.png"); 15 document.execCommand('InsertImage', false, "../resources/abe.png");
16 // Select only "the", not the space, LTR text in LTR region. 16 // Select only "the", not the space, LTR text in LTR region.
17 document.getSelection().setBaseAndExtent(ltr1.firstChild, 0, ltr1.firstChild, 3) ; 17 document.getSelection().setBaseAndExtent(ltr1.firstChild, 0, ltr1.firstChild, 3) ;
18 document.execCommand('InsertImage', false, "../resources/abe.png"); 18 document.execCommand('InsertImage', false, "../resources/abe.png");
19 // Select only "אחת", not the space, RTL text in LTR region. 19 // Select only "אחת", not the space, RTL text in LTR region.
20 document.getSelection().setBaseAndExtent(ltr2.firstChild, 0, ltr2.firstChild, 3) ; 20 document.getSelection().setBaseAndExtent(ltr2.firstChild, 0, ltr2.firstChild, 3) ;
21 document.execCommand('InsertImage', false, "../resources/abe.png"); 21 document.execCommand('InsertImage', false, "../resources/abe.png");
22 </script> 22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698