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

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

Issue 2449443002: Convert editing/spelling/spelling.html with spellcheck_test (Closed)
Patch Set: Done 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/spelling_after_newline.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spelling_after_newline.html b/third_party/WebKit/LayoutTests/editing/spelling/spelling_after_newline.html
new file mode 100644
index 0000000000000000000000000000000000000000..45fafa1dda2859452521f16d166612d383a923eb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/spelling/spelling_after_newline.html
@@ -0,0 +1,18 @@
+<!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>
+spellcheck_test(
+ '<div contenteditable>|a</div>',
+ document => {
+ document.execCommand('insertText', false, 'x');
+ document.execCommand('insertParagraph');
+ document.execCommand('insertText', false, 'zz ');
+ },
+ '<div contenteditable>x<div>_zz_ a</div></div>',
+ 'Mark misspelling in new line.'
+);
+</script>

Powered by Google App Engine
This is Rietveld 408576698