| Index: third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d0b4741ed7253fe4965c5d4b89581c2b55093c2c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html
|
| @@ -0,0 +1,35 @@
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| +<script src="spellcheck_test.js"></script>
|
| +
|
| +<script>
|
| +// This file tests the functionality of spellcheck_test.js
|
| +
|
| +test(
|
| + () => spellingMarker(0, 1, 'description').assertValid(),
|
| + 'spellingMarker returns valid Marker.');
|
| +
|
| +test(
|
| + () => grammarMarker(0, 1, 'description').assertValid(),
|
| + 'grammarMarker returns valid Marker.');
|
| +
|
| +spellcheck_test(
|
| + '<div contentEditable>|</div>',
|
| + 'insertText wellcome.',
|
| + spellingMarker(0, 8, 'welcome'), // 'wellcome'
|
| + 'Mark misspellings and give replacement suggestions after typing.');
|
| +
|
| +spellcheck_test(
|
| + '<div contentEditable>|</div>',
|
| + 'insertText zz zz.',
|
| + [spellingMarker(0, 2), spellingMarker(3, 2)], // Both 'zz's
|
| + 'Mark multiple misspellings after simple typing.');
|
| +
|
| +spellcheck_test(
|
| + '<div contentEditable>|</div>',
|
| + 'insertText You has the right.',
|
| + grammarMarker(4, 3), // 'has'
|
| + 'Mark ungrammatical phrases after yping.');
|
| +</script>
|
|
|