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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/move-cursor-to-misspelled-word.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
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 spellcheck_test( 8 spellcheck_test(
9 '<div contenteditable>zz&nbsp;|</div>', 9 '<div contenteditable>zz&nbsp;|</div>',
10 '', 10 '',
11 '<div contenteditable>_zz_ </div>', 11 '<div contenteditable>#zz# </div>',
12 { 12 {
13 title: 'Has marker on initially misspelled text', 13 title: 'Has marker on initially misspelled text',
14 callback: sample => spellcheck_test( 14 callback: sample => spellcheck_test(
15 sample, 15 sample,
16 document => document.getSelection().modify('move', 'backward', 'charac ter'), 16 document => document.getSelection().modify('move', 'backward', 'charac ter'),
17 '<div contenteditable>_zz_ </div>', 17 '<div contenteditable>#zz# </div>',
18 'Moving cursor to misspelled word does not remove marker.') 18 'Moving cursor to misspelled word does not remove marker.')
19 }); 19 });
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698