summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command_test.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command_test.cc b/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command_test.cc
index 0f6244a43e3..aaf00dd0f92 100644
--- a/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command_test.cc
+++ b/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command_test.cc
@@ -53,8 +53,7 @@ TEST_F(ReplaceSelectionCommandTest, pastingEmptySpan) {
GetDocument(), fragment, options);
EXPECT_TRUE(command->Apply()) << "the replace command should have succeeded";
- EXPECT_EQ("foo", GetDocument().body()->InnerHTMLAsString())
- << "no DOM tree mutation";
+ EXPECT_EQ("foo", GetDocument().body()->innerHTML()) << "no DOM tree mutation";
}
// This is a regression test for https://crbug.com/668808
@@ -79,7 +78,7 @@ TEST_F(ReplaceSelectionCommandTest, pasteSpanInText) {
GetDocument(), fragment, options);
EXPECT_TRUE(command->Apply()) << "the replace command should have succeeded";
- EXPECT_EQ("<b>t</b>bar<b>ext</b>", GetDocument().body()->InnerHTMLAsString())
+ EXPECT_EQ("<b>t</b>bar<b>ext</b>", GetDocument().body()->innerHTML())
<< "'bar' should have been inserted";
}