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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp

Issue 2374183004: Make non-null VisibleSelections creatable only by createVisibleSelection[Deprecated] (Closed)
Patch Set: Fix mac compile error 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/editing/commands/InsertListCommandTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
index eb70b3574f76684adf611519373a42baf4f528fc..ef83fc4a3824162ea13878221e22e4ece05ed7ee 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp
@@ -33,7 +33,7 @@ TEST_F(InsertListCommandTest, ShouldCleanlyRemoveSpuriousTextNode)
setBodyContent("\nd\n<ol>");
Text* emptyText = document().createTextNode("");
document().body()->insertBefore(emptyText, document().body()->firstChild());
- document().frame()->selection().setSelection(VisibleSelection(Position(document().body(), 0), Position(document().body(), 2)));
+ document().frame()->selection().setSelection(createVisibleSelectionDeprecated(Position(document().body(), 0), Position(document().body(), 2)));
InsertListCommand* command = InsertListCommand::create(document(), InsertListCommand::OrderedList);
// This should not DCHECK.

Powered by Google App Engine
This is Rietveld 408576698