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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/cold_mode_static_page.html

Issue 2734013002: Implement cold mode invocation for idle time spell checker (Closed)
Patch Set: rebased Mar 7 Created 3 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 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 <script>
7 spellcheck_test(
8 '<div contenteditable>zz</div>',
9 '',
10 '<div contenteditable>#zz#</div>',
11 {
12 title: 'Check static contenteditable.',
13 needsFullCheck: true
14 });
15
16 spellcheck_test(
17 '<textarea>zz</textarea>',
18 '',
19 '<textarea>#zz#</textarea>',
20 {
21 title: 'Check static TEXTAREA.',
22 needsFullCheck: true
23 });
24
25 // No test case for INPUT because unfocused INPUT should not be checked.
26
27 spellcheck_test(
28 '<div contenteditable>zz</div><div contenteditable>asd</div>',
29 '',
30 '<div contenteditable>#zz#</div><div contenteditable>#asd#</div>',
31 {
32 title: 'Check multiple fields.',
33 needsFullCheck: true
34 });
35
36 spellcheck_test(
37 [
38 '<div contenteditable spellcheck="false">',
39 'zz',
40 '<div spellcheck="true">',
41 'foo',
42 '<div spellcheck="false">asd</div>',
43 'foo',
44 '</div>',
45 'zz',
46 '</div>'
47 ].join(''),
48 '',
49 [
50 '<div contenteditable spellcheck="false">',
51 'zz',
52 '<div spellcheck="true">',
53 '#foo#',
54 '<div spellcheck="false">asd</div>',
55 '#foo#',
56 '</div>',
57 'zz',
58 '</div>'
59 ].join(''),
60 {
61 title: 'Handle mixed spellcheck values.',
62 needsFullCheck: true
63 });
64
65 spellcheck_test(
66 '<textarea disabled>zz</textarea>',
67 '',
68 '<textarea disabled>zz</textarea>',
69 {
70 title: 'Do not check disabled TEXTAREA.',
71 needsFullCheck: true
72 });
73
74 spellcheck_test(
75 '<textarea readonly>zz</textarea>',
76 '',
77 '<textarea readonly>zz</textarea>',
78 {
79 title: 'Do not check readonly TEXTAREA.',
80 needsFullCheck: true
81 });
82 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698