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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <script src="spellcheck_test.js"></script>
6
7 <script>
8 spellcheck_test(
9 [
10 '<div contenteditable>',
11 '|the the adlj adaasj sdklj. there there',
12 '</div>'
13 ].join(''),
14 '',
15 [
16 '<div contenteditable>',
17 'the ~the~ #adlj# #adaasj# #sdklj#. there ~there~',
18 '</div>'
19 ].join(''),
20 'LTR');
21
22 spellcheck_test(
23 [
24 '<div contenteditable style="direction: rtl; unicode-bidi: bidi-override;" >',
25 '|the the adlj adaasj sdklj. there there',
26 '</div>'
27 ].join(''),
28 '',
29 [
30 '<div contenteditable style="direction: rtl; unicode-bidi: bidi-override;" >',
31 'the ~the~ #adlj# #adaasj# #sdklj#. there ~there~',
32 '</div>'
33 ].join(''),
34 'RTL');
35
36 spellcheck_test(
37 [
38 '<div contenteditable style="text-overflow:ellipsis">',
39 '|the the adlj adaasj sdklj. there there',
40 '</div>'
41 ].join(''),
42 '',
43 [
44 '<div contenteditable style="text-overflow:ellipsis">',
45 'the ~the~ #adlj# #adaasj# #sdklj#. there ~there~',
46 '</div>'
47 ].join(''),
48 'LTR (text-overflow:ellipses)');
49
50 spellcheck_test(
51 [
52 '<div contenteditable style="direction: rtl; unicode-bidi: bidi-override; text-overflow:ellipsis">',
53 '|the the adlj adaasj sdklj. there there',
54 '</div>'
55 ].join(''),
56 '',
57 [
58 '<div contenteditable style="direction: rtl; unicode-bidi: bidi-override; text-overflow:ellipsis">',
59 'the ~the~ #adlj# #adaasj# #sdklj#. there ~there~',
60 '</div>'
61 ].join(''),
62 'RTL (text-overflow:ellipses)');
63 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698