blob: 4f8bbf8a83e1561e7c1296ecdb34333db19f6e23 [file] [log] [blame]
This test verifies that programmatically setting the text direction using editing commands doesn't crash.
MakeTextWritingDirectionLeftToRight:
| "foo"
| <div>
| <span>
| id="bar"
| style="unicode-bidi: embed;"
| "<#selection-anchor>aתbc"
| <div>
| <#selection-focus>
| "baz"
MakeTextWritingDirectionRightToLeft:
| "foo"
| <div>
| <span>
| id="bar"
| style="unicode-bidi: embed; direction: rtl;"
| "<#selection-anchor>aתbc"
| <div>
| <#selection-focus>
| "baz"
MakeTextWritingDirectionNatural:
| "foo"
| <div>
| <span>
| id="bar"
| "<#selection-anchor>aתbc"
| <div>
| <#selection-focus>
| "baz"