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

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

Issue 2435273002: Introduce spellcheck_test (Closed)
Patch Set: Mon Oct 24 17:28:00 JST 2016 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/spellcheck_test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <script src="spellcheck_test.js"></script>
6
7 <script>
8 // This file tests the functionality of spellcheck_test.js
9
10 test(
11 () => spellingMarker(0, 1, 'description').assertValid(),
12 'spellingMarker returns valid Marker.');
13
14 test(
15 () => grammarMarker(0, 1, 'description').assertValid(),
16 'grammarMarker returns valid Marker.');
17
18 spellcheck_test(
19 '<div contentEditable>|</div>',
20 'insertText wellcome.',
21 spellingMarker(0, 8, 'welcome'), // 'wellcome'
22 'Mark misspellings and give replacement suggestions after typing.');
23
24 spellcheck_test(
25 '<div contentEditable>|</div>',
26 'insertText zz zz.',
27 [spellingMarker(0, 2), spellingMarker(3, 2)], // Both 'zz's
28 'Mark multiple misspellings after typing.');
29
30 spellcheck_test(
31 '<div contentEditable>|</div>',
32 'insertText You has the right.',
33 grammarMarker(4, 3), // 'has'
34 'Mark ungrammatical phrases after typing.');
35 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698