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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp

Issue 2375383005: Prune CreateVisibleSelectionDeprecated from unit test files (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
index d44d8f54a1520cf0f2f3381dca48ffc0270fc1df..f0a72aabda51b27abf62bdc4ac09b3ef688aa55c 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
@@ -203,10 +203,11 @@ TEST_F(HTMLTextFormControlElementTest, SpellCheckDoesNotCauseUpdateLayout)
HTMLInputElement* input = toHTMLInputElement(document().getElementById("input"));
input->focus();
input->setValue("Hello, input field");
+ document().updateStyleAndLayout();
VisibleSelection oldSelection = document().frame()->selection().selection();
Position newPosition(input->innerEditorElement()->firstChild(), 3);
- VisibleSelection newSelection = createVisibleSelectionDeprecated(newPosition, TextAffinity::Downstream);
+ VisibleSelection newSelection = createVisibleSelection(newPosition, TextAffinity::Downstream);
document().frame()->selection().setSelection(newSelection, FrameSelection::CloseTyping | FrameSelection::ClearTypingStyle | FrameSelection::DoNotUpdateAppearance);
ASSERT_EQ(3, input->selectionStart());

Powered by Google App Engine
This is Rietveld 408576698