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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck_with_text_directions.html

Issue 2498313002: Rewrite editing/spelling/inline-spelling-marker*.html (Closed)
Patch Set: Add warning div Created 4 years, 1 month 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: 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>

Powered by Google App Engine
This is Rietveld 408576698