| Index: LayoutTests/editing/execCommand/insert-image-on-top-of-directional-text.html
|
| diff --git a/LayoutTests/editing/execCommand/insert-image-on-top-of-directional-text.html b/LayoutTests/editing/execCommand/insert-image-on-top-of-directional-text.html
|
| index 34ab296dca73b780046909a1a51ff73c4c84403e..5597930350ec296f1221589cbe560326910a0c54 100644
|
| --- a/LayoutTests/editing/execCommand/insert-image-on-top-of-directional-text.html
|
| +++ b/LayoutTests/editing/execCommand/insert-image-on-top-of-directional-text.html
|
| @@ -1,22 +1,22 @@
|
| -<div>This test uses execCommand('insertImage') to replace the selection in a variety of mixed directionality text. If this doesn't crash, then the test passes.</div>
|
| -<div dir='rtl' id='rtl1' style='white-space:pre' contentEditable>the </div>
|
| -<div dir='rtl' id='rtl2' style='white-space:pre' contentEditable>אחת </div>
|
| -<div dir='ltr' id='ltr1' style='white-space:pre' contentEditable>the </div>
|
| -<div dir='ltr' id='ltr2' style='white-space:pre' contentEditable>אחת </div>
|
| -<script>
|
| -if (window.testRunner)
|
| - testRunner.dumpAsText();
|
| -
|
| -// Select only "the", not the space, LTR text in RTL region.
|
| -document.getSelection().setBaseAndExtent(rtl1.firstChild, 0, rtl1.firstChild, 3);
|
| -document.execCommand('InsertImage', false, "../resources/abe.png");
|
| -// Select only "אחת", not the space, RTL text in RTL region.
|
| -document.getSelection().setBaseAndExtent(rtl2.firstChild, 0, rtl2.firstChild, 3);
|
| -document.execCommand('InsertImage', false, "../resources/abe.png");
|
| -// Select only "the", not the space, LTR text in LTR region.
|
| -document.getSelection().setBaseAndExtent(ltr1.firstChild, 0, ltr1.firstChild, 3);
|
| -document.execCommand('InsertImage', false, "../resources/abe.png");
|
| -// Select only "אחת", not the space, RTL text in LTR region.
|
| -document.getSelection().setBaseAndExtent(ltr2.firstChild, 0, ltr2.firstChild, 3);
|
| -document.execCommand('InsertImage', false, "../resources/abe.png");
|
| -</script>
|
| +<div>This test uses execCommand('insertImage') to replace the selection in a variety of mixed directionality text. If this doesn't crash, then the test passes.</div>
|
| +<div dir='rtl' id='rtl1' style='white-space:pre' contentEditable>the </div>
|
| +<div dir='rtl' id='rtl2' style='white-space:pre' contentEditable>אחת </div>
|
| +<div dir='ltr' id='ltr1' style='white-space:pre' contentEditable>the </div>
|
| +<div dir='ltr' id='ltr2' style='white-space:pre' contentEditable>אחת </div>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +// Select only "the", not the space, LTR text in RTL region.
|
| +document.getSelection().setBaseAndExtent(rtl1.firstChild, 0, rtl1.firstChild, 3);
|
| +document.execCommand('InsertImage', false, "../resources/abe.png");
|
| +// Select only "אחת", not the space, RTL text in RTL region.
|
| +document.getSelection().setBaseAndExtent(rtl2.firstChild, 0, rtl2.firstChild, 3);
|
| +document.execCommand('InsertImage', false, "../resources/abe.png");
|
| +// Select only "the", not the space, LTR text in LTR region.
|
| +document.getSelection().setBaseAndExtent(ltr1.firstChild, 0, ltr1.firstChild, 3);
|
| +document.execCommand('InsertImage', false, "../resources/abe.png");
|
| +// Select only "אחת", not the space, RTL text in LTR region.
|
| +document.getSelection().setBaseAndExtent(ltr2.firstChild, 0, ltr2.firstChild, 3);
|
| +document.execCommand('InsertImage', false, "../resources/abe.png");
|
| +</script>
|
|
|