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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/delete-misspelled-word.html

Issue 2697213002: Do not guess UTF8 encoding (Closed)
Patch Set: webkit layout htmls Created 3 years, 10 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"/>
4 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../assert_selection.js"></script> 7 <script src="../assert_selection.js"></script>
7 <script src="spellcheck_test.js"></script> 8 <script src="spellcheck_test.js"></script>
8 9
9 <script> 10 <script>
10 spellcheck_test( 11 spellcheck_test(
11 '<div contenteditable>zz&nbsp;|</div>', 12 '<div contenteditable>zz&nbsp;|</div>',
12 '', 13 '',
13 '<div contenteditable>#zz# </div>', 14 '<div contenteditable>#zz# </div>',
14 { 15 {
15 title: 'Has marker on initially misspelled word.', 16 title: 'Has marker on initially misspelled word.',
16 callback: sample => spellcheck_test( 17 callback: sample => spellcheck_test(
17 sample, 18 sample,
18 document => { 19 document => {
19 testRunner.execCommand('DeleteBackward'); 20 testRunner.execCommand('DeleteBackward');
20 testRunner.execCommand('DeleteBackward'); 21 testRunner.execCommand('DeleteBackward');
21 document.execCommand('InsertText', false, ' '); 22 document.execCommand('InsertText', false, ' ');
22 }, 23 },
23 '<div contenteditable>z </div>', 24 '<div contenteditable>z </div>',
24 'Blink spellchecks a word again when changing a misspelled word') 25 'Blink spellchecks a word again when changing a misspelled word')
25 }); 26 });
26 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698