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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/context_click_select_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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 `${shouldSelect ? 'selects' : 'does not select'} ` + 53 `${shouldSelect ? 'selects' : 'does not select'} ` +
54 `the correctly spelled word on ${platform}`); 54 `the correctly spelled word on ${platform}`);
55 }) 55 })
56 56
57 heldTest.done(); 57 heldTest.done();
58 } 58 }
59 59
60 spellcheck_test( 60 spellcheck_test(
61 '<input type="text" value="wellcome home.">', 61 '<input type="text" value="wellcome home.">',
62 document => document.querySelector('input').focus(), 62 document => document.querySelector('input').focus(),
63 '<input type="text" value="_wellcome_ home.">', 63 '<input type="text" value="#wellcome# home.">',
64 { 64 {
65 title: 'Mark misspelling in the initial text of an input field.', 65 title: 'Mark misspelling in the initial text of an input field.',
66 callback: sample => contextClickSelectionTests( 66 callback: sample => contextClickSelectionTests(
67 sample.document.querySelector('input')) 67 sample.document.querySelector('input'))
68 }); 68 });
69 </script> 69 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698