| Index: third_party/WebKit/LayoutTests/editing/spelling/spellcheck_with_text_directions.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_with_text_directions.html b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_with_text_directions.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b49a9152402cbdcb6c02df7d0410270f63300655
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_with_text_directions.html
|
| @@ -0,0 +1,63 @@
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| +<script src="spellcheck_test.js"></script>
|
| +
|
| +<script>
|
| +spellcheck_test(
|
| + [
|
| + '<div contenteditable>',
|
| + '|the the adlj adaasj sdklj. there there',
|
| + '</div>'
|
| + ].join(''),
|
| + '',
|
| + [
|
| + '<div contenteditable>',
|
| + 'the ~the~ #adlj# #adaasj# #sdklj#. there ~there~',
|
| + '</div>'
|
| + ].join(''),
|
| + 'LTR');
|
| +
|
| +spellcheck_test(
|
| + [
|
| + '<div contenteditable style="direction: rtl; unicode-bidi: bidi-override;">',
|
| + '|the the adlj adaasj sdklj. there there',
|
| + '</div>'
|
| + ].join(''),
|
| + '',
|
| + [
|
| + '<div contenteditable style="direction: rtl; unicode-bidi: bidi-override;">',
|
| + 'the ~the~ #adlj# #adaasj# #sdklj#. there ~there~',
|
| + '</div>'
|
| + ].join(''),
|
| + 'RTL');
|
| +
|
| +spellcheck_test(
|
| + [
|
| + '<div contenteditable style="text-overflow:ellipsis">',
|
| + '|the the adlj adaasj sdklj. there there',
|
| + '</div>'
|
| + ].join(''),
|
| + '',
|
| + [
|
| + '<div contenteditable style="text-overflow:ellipsis">',
|
| + 'the ~the~ #adlj# #adaasj# #sdklj#. there ~there~',
|
| + '</div>'
|
| + ].join(''),
|
| + 'LTR (text-overflow:ellipses)');
|
| +
|
| +spellcheck_test(
|
| + [
|
| + '<div contenteditable style="direction: rtl; unicode-bidi: bidi-override; text-overflow:ellipsis">',
|
| + '|the the adlj adaasj sdklj. there there',
|
| + '</div>'
|
| + ].join(''),
|
| + '',
|
| + [
|
| + '<div contenteditable style="direction: rtl; unicode-bidi: bidi-override; text-overflow:ellipsis">',
|
| + 'the ~the~ #adlj# #adaasj# #sdklj#. there ~there~',
|
| + '</div>'
|
| + ].join(''),
|
| + 'RTL (text-overflow:ellipses)');
|
| +</script>
|
|
|