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

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

Issue 2714263002: INPUT without focus should be considered as spellcheck disabled (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/spelling/no_marker_in_blurred_input.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/no_marker_in_blurred_input.html b/third_party/WebKit/LayoutTests/editing/spelling/no_marker_in_blurred_input.html
new file mode 100644
index 0000000000000000000000000000000000000000..86d97075fad3a08d35595cc8a31540eb5260376e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/spelling/no_marker_in_blurred_input.html
@@ -0,0 +1,21 @@
+<!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>
+<input id=input>
+<textarea id=textarea></textarea>
+<script>
+spellcheck_test(
+ '<input>',
+ document => {
+ const input = document.querySelector('input');
+ document.getSelection().setClipboardData('zz.');
+ input.focus();
+ document.execCommand('paste');
+ document.execCommand('paste');
+ input.blur();
+ },
+ '<input value="zz.zz.">',
+ 'Markers should not be added to INPUT without focus.');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698