summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/selection_controller_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/selection_controller_test.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/editing/selection_controller_test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/selection_controller_test.cc b/chromium/third_party/blink/renderer/core/editing/selection_controller_test.cc
index f07c5c78899..64a15750c14 100644
--- a/chromium/third_party/blink/renderer/core/editing/selection_controller_test.cc
+++ b/chromium/third_party/blink/renderer/core/editing/selection_controller_test.cc
@@ -110,13 +110,13 @@ TEST_F(SelectionControllerTest, setCaretAtHitTestResult) {
const char* body_content = "<div id='sample' contenteditable>sample</div>";
SetBodyContent(body_content);
GetDocument().GetSettings()->SetScriptEnabled(true);
- Element* script = GetDocument().CreateRawElement(HTMLNames::scriptTag);
+ Element* script = GetDocument().CreateRawElement(html_names::kScriptTag);
script->SetInnerHTMLFromString(
"var sample = document.getElementById('sample');"
"sample.addEventListener('onselectstart', "
" event => elem.parentNode.removeChild(elem));");
GetDocument().body()->AppendChild(script);
- GetDocument().View()->UpdateAllLifecyclePhases();
+ UpdateAllLifecyclePhasesForTest();
HitTestLocation location((IntPoint(8, 8)));
GetFrame().GetEventHandler().GetSelectionController().HandleGestureLongPress(
GetFrame().GetEventHandler().HitTestResultAtLocation(location));
@@ -130,7 +130,7 @@ TEST_F(SelectionControllerTest, setCaretAtHitTestResultWithNullPosition) {
"#sample { user-select: none; }"
"</style>"
"<div id=sample></div>");
- GetDocument().View()->UpdateAllLifecyclePhases();
+ UpdateAllLifecyclePhasesForTest();
// Hit "&nbsp;" in before pseudo element of "sample".
HitTestLocation location((IntPoint(10, 10)));
@@ -144,7 +144,7 @@ TEST_F(SelectionControllerTest, setCaretAtHitTestResultWithNullPosition) {
TEST_F(SelectionControllerTest,
SetCaretAtHitTestResultWithDisconnectedPosition) {
GetDocument().GetSettings()->SetScriptEnabled(true);
- Element* script = GetDocument().CreateRawElement(HTMLNames::scriptTag);
+ Element* script = GetDocument().CreateRawElement(html_names::kScriptTag);
script->SetInnerHTMLFromString(
"document.designMode = 'on';"
"const selection = window.getSelection();"
@@ -159,7 +159,7 @@ TEST_F(SelectionControllerTest,
"}"
"document.addEventListener('selectstart', selectstart);");
GetDocument().body()->AppendChild(script);
- GetDocument().View()->UpdateAllLifecyclePhases();
+ UpdateAllLifecyclePhasesForTest();
// Simulate a tap somewhere in the document
blink::WebMouseEvent mouse_event(