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

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

Issue 2455043002: Switch spelling marker from '_' to '#' in spellcheck_test (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script> 4 <script src="../assert_selection.js"></script>
5 <script src="spellcheck_test.js"></script> 5 <script src="spellcheck_test.js"></script>
6 6
7 <script> 7 <script>
8 test(() => assert_not_equals(window.internals, undefined), 8 test(() => assert_not_equals(window.internals, undefined),
9 'This test requires internals to set editing behavior.'); 9 'This test requires internals to set editing behavior.');
10 10
(...skipping 27 matching lines...) Expand all
38 }, `Context clicking on exactly-selected "${sample.selection.toString()}" give s suggestions "${expected}".`); 38 }, `Context clicking on exactly-selected "${sample.selection.toString()}" give s suggestions "${expected}".`);
39 sample.remove(); 39 sample.remove();
40 40
41 if (++testHolder.finishedCount == 2) 41 if (++testHolder.finishedCount == 2)
42 testHolder.done(); 42 testHolder.done();
43 } 43 }
44 44
45 spellcheck_test( 45 spellcheck_test(
46 '<div contenteditable>^wellcome| home.</div>', 46 '<div contenteditable>^wellcome| home.</div>',
47 '', 47 '',
48 '<div contenteditable>_wellcome_ home.</div>', 48 '<div contenteditable>#wellcome# home.</div>',
49 { 49 {
50 title: 'Has marker on initial misspelling.', 50 title: 'Has marker on initial misspelling.',
51 callback: sample => assertContextMenuSuggestion(sample, 'welcome') 51 callback: sample => assertContextMenuSuggestion(sample, 'welcome')
52 }); 52 });
53 53
54 spellcheck_test( 54 spellcheck_test(
55 '<div contenteditable>It should be ^upper case|.</div>', 55 '<div contenteditable>It should be ^upper case|.</div>',
56 '', 56 '',
57 '<div contenteditable>It should be _upper case_.</div>', 57 '<div contenteditable>It should be #upper case#.</div>',
58 { 58 {
59 title: 'Has marker on initial multi-word misspelling.', 59 title: 'Has marker on initial multi-word misspelling.',
60 callback: sample => assertContextMenuSuggestion(sample, 'uppercase') 60 callback: sample => assertContextMenuSuggestion(sample, 'uppercase')
61 }); 61 });
62 </script> 62 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/spelling/context_click_select_misspelling.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698