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

Unified 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698