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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html

Issue 2435273002: Introduce spellcheck_test (Closed)
Patch Set: Introduce Marker class Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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..cfb7994dadc16361fbab85d1dd8ca748eb4529d4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck_test.html
@@ -0,0 +1,23 @@
+<!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
+
yosin_UTC9 2016/10/24 04:40:08 Let's add test case for spellingMarker() and gramm
Xiaocheng 2016/10/24 05:11:37 Done.
+spellcheck_test(
+ '<div contentEditable>|</div>',
+ 'insertText wellcome.',
+ spellingMarker(0, 8, 'welcome'), // 'wellcome'
+ 'Mark misspellings and give replacement suggestions after simple typing.'
+);
+
+spellcheck_test(
+ '<div contentEditable>|</div>',
+ 'insertText You has the right.',
+ grammarMarker(4, 3), // 'has'
yosin_UTC9 2016/10/24 04:40:08 Could you add a test to take array with multiple e
Xiaocheng 2016/10/24 05:11:37 Done.
+ 'Mark ungrammatical phrases after simple typing.'
+);
+</script>

Powered by Google App Engine
This is Rietveld 408576698