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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/design-mode-spellcheck-off.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 <script> 6 <script>
7 spellcheck_test( 7 spellcheck_test(
8 [ 8 [
9 '<div id="container" spellcheck="false">', 9 '<div id="container" spellcheck="false">',
10 '<div>|asd is misspelled.</div>', 10 '<div>|asd is misspelled.</div>',
(...skipping 12 matching lines...) Expand all
23 title: 'No spelling marker in designMode when spellcheck=false.', 23 title: 'No spelling marker in designMode when spellcheck=false.',
24 callback: sample => spellcheck_test( 24 callback: sample => spellcheck_test(
25 sample, 25 sample,
26 document => { 26 document => {
27 document.getElementById('container').setAttribute('spellcheck', 'tru e'); 27 document.getElementById('container').setAttribute('spellcheck', 'tru e');
28 // Do any selection change to force spellchecking after attribute ch ange. 28 // Do any selection change to force spellchecking after attribute ch ange.
29 document.getSelection().modify('move', 'forward', 'line'); 29 document.getSelection().modify('move', 'forward', 'line');
30 }, 30 },
31 [ 31 [
32 '<div id="container" spellcheck="true">', 32 '<div id="container" spellcheck="true">',
33 '<div>_asd_ is misspelled.</div>', 33 '<div>#asd# is misspelled.</div>',
34 '</div>' 34 '</div>'
35 ].join(''), 35 ].join(''),
36 'Spelling marker appears when changing spellcheck from false to true.' ) 36 'Spelling marker appears when changing spellcheck from false to true.' )
37 }); 37 });
38 </script> 38 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698