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> |