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

Unified Diff: LayoutTests/editing/spelling/spellcheck-async-mutation.html

Issue 21024004: Add/remove spell checking markers in text inputs depending on focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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: LayoutTests/editing/spelling/spellcheck-async-mutation.html
diff --git a/LayoutTests/editing/spelling/spellcheck-async-mutation.html b/LayoutTests/editing/spelling/spellcheck-async-mutation.html
index 6f2c0d88fa25780c1cdac78e908043f7b2f05e7a..b417848f22a0ac5d0f878832a98dc3e55438f1af 100644
--- a/LayoutTests/editing/spelling/spellcheck-async-mutation.html
+++ b/LayoutTests/editing/spelling/spellcheck-async-mutation.html
@@ -211,7 +211,9 @@ function verifyExistenceOfMarkers(elem, tweakKind) {
case 'delete':
return true;
case 'move':
- // In move, marker should be there.
+ // In move, marker should be there unless it's input which is moved.
please use gerrit instead 2013/07/30 21:32:00 This sentence is not clear. Please explain in more
+ if (elem instanceof HTMLInputElement && elem !=document.activeElement)
please use gerrit instead 2013/07/30 21:32:00 Please add a space after !=.
+ return true;
var markerNum = internals.markerCountForNode(findFirstTextNode(elem), "spelling");
if (markerNum != 3)
return false;

Powered by Google App Engine
This is Rietveld 408576698