Index: Source/core/editing/PositionTest.cpp |
diff --git a/Source/core/editing/PositionTest.cpp b/Source/core/editing/PositionTest.cpp |
index ac15d4d65caf41cda8befa2b04cbd5fbd468601c..a1003c21eb8ce2d72e14ce4e47dba1ae60a507dd 100644 |
--- a/Source/core/editing/PositionTest.cpp |
+++ b/Source/core/editing/PositionTest.cpp |
@@ -51,7 +51,7 @@ TEST_F(PositionTest, NodeAsRangeLastNodeShadow) |
const char* bodyContent = "<p id='host'>00<b id='one'>11</b><b id='two'>22</b>33</p>"; |
const char* shadowContent = "<a id='a'><content select=#two></content><content select=#one></content></a>"; |
setBodyContent(bodyContent); |
- RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent); |
+ RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent, "host"); |
Node* host = document().getElementById("host"); |
Node* n1 = document().getElementById("one"); |
@@ -80,7 +80,7 @@ TEST_F(PositionTest, ToPositionInComposedTreeWithActiveInsertionPoint) |
const char* bodyContent = "<p id='host'>00<b id='one'>11</b>22</p>"; |
const char* shadowContent = "<a id='a'><content select=#one id='content'></content><content></content></a>"; |
setBodyContent(bodyContent); |
- RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent); |
+ RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent, "host"); |
RefPtrWillBeRawPtr<Element> anchor = shadowRoot->getElementById("a"); |
EXPECT_EQ(PositionInComposedTree(anchor.get(), 0), toPositionInComposedTree(Position(anchor.get(), 0))); |
@@ -103,7 +103,7 @@ TEST_F(PositionTest, ToPositionInComposedTreeWithShadowRoot) |
const char* bodyContent = "<p id='host'>00<b id='one'>11</b>22</p>"; |
const char* shadowContent = "<a><content select=#one></content></a>"; |
setBodyContent(bodyContent); |
- RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent); |
+ RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent, "host"); |
RefPtrWillBeRawPtr<Element> host = document().getElementById("host"); |
EXPECT_EQ(PositionInComposedTree(host.get(), 0), toPositionInComposedTree(Position(shadowRoot.get(), 0))); |
@@ -115,7 +115,7 @@ TEST_F(PositionTest, ToPositionInComposedTreeWithShadowRootContainingSingleConte |
const char* bodyContent = "<p id='host'>00<b id='one'>11</b>22</p>"; |
const char* shadowContent = "<content select=#one></content>"; |
setBodyContent(bodyContent); |
- RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent); |
+ RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent, "host"); |
RefPtrWillBeRawPtr<Element> host = document().getElementById("host"); |
EXPECT_EQ(PositionInComposedTree(host.get(), 0), toPositionInComposedTree(Position(shadowRoot.get(), 0))); |
@@ -127,7 +127,7 @@ TEST_F(PositionTest, ToPositionInComposedTreeWithEmptyShadowRoot) |
const char* bodyContent = "<p id='host'>00<b id='one'>11</b>22</p>"; |
const char* shadowContent = ""; |
setBodyContent(bodyContent); |
- RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent); |
+ RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent, "host"); |
RefPtrWillBeRawPtr<Element> host = document().getElementById("host"); |
EXPECT_EQ(PositionInComposedTree(host, PositionAnchorType::AfterChildren), toPositionInComposedTree(Position(shadowRoot.get(), 0))); |