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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.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/ReplaceSelectionCommandTest.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp
index 8c9d77d5662425ce282aecdb374d835077039095..a299743b9955188610e2f568aeb6dd63292a24c1 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp
@@ -33,7 +33,7 @@ TEST_F(ReplaceSelectionCommandTest, pastingEmptySpan)
LocalFrame* frame = document().frame();
frame->selection().setSelection(
- VisibleSelection(Position(document().body(), 0)));
+ createVisibleSelectionDeprecated(Position(document().body(), 0)));
DocumentFragment* fragment = document().createDocumentFragment();
fragment->appendChild(document().createElement("span", ASSERT_NO_EXCEPTION));
@@ -58,7 +58,7 @@ TEST_F(ReplaceSelectionCommandTest, styleTagsInPastedHeadIncludedInContent)
{
document().setDesignMode("on");
dummyPageHolder().frame().selection().setSelection(
- VisibleSelection(Position(document().body(), 0)));
+ createVisibleSelectionDeprecated(Position(document().body(), 0)));
DocumentFragment* fragment = document().createDocumentFragment();
fragment->parseHTML(

Powered by Google App Engine
This is Rietveld 408576698