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

Unified Diff: LayoutTests/editing/spelling/grammar-paste.html

Issue 23514049: needsFocus is always undefined in grammar-paste.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/spelling/grammar-paste.html
diff --git a/LayoutTests/editing/spelling/grammar-paste.html b/LayoutTests/editing/spelling/grammar-paste.html
index 674b8ee9cb11ffbfeeeea6ae9dbeadd41898f7a4..a47260f80962aa595e3caadf428d1828283d6821 100644
--- a/LayoutTests/editing/spelling/grammar-paste.html
+++ b/LayoutTests/editing/spelling/grammar-paste.html
@@ -75,15 +75,12 @@ function findFirstTextNode(node)
return iterToFindFirstTextNode(node);
}
-function verifyMarker(node, expectedMarked, needsFocus)
+function verifyMarker(node, expectedMarked)
{
- if (true) {
- if (node instanceof HTMLInputElement || node instanceof HTMLTextAreaElement) {
- node.focus();
- } else {
- sel.selectAllChildren(node);
- }
- }
+ if (node instanceof HTMLInputElement || node instanceof HTMLTextAreaElement)
+ node.focus();
+ else
+ sel.selectAllChildren(node);
var textNode = findFirstTextNode(node);
var num = internals.markerCountForNode(textNode, "grammar");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698