| Index: Source/core/editing/VisibleSelectionTest.cpp
|
| diff --git a/Source/core/editing/VisibleSelectionTest.cpp b/Source/core/editing/VisibleSelectionTest.cpp
|
| index e173c61ab19edfbce9b2982ecd759be2429202cf..10d3bfddfebca84f076aac6408ac3cd006825f7f 100644
|
| --- a/Source/core/editing/VisibleSelectionTest.cpp
|
| +++ b/Source/core/editing/VisibleSelectionTest.cpp
|
| @@ -73,7 +73,7 @@ TEST_F(VisibleSelectionTest, ShadowCrossing)
|
| const char* bodyContent = "<p id='host'>00<b id='one'>11</b><b id='two'>22</b>33</p>";
|
| const char* shadowContent = "<a><span id='s4'>44</span><content select=#two></content><span id='s5'>55</span><content select=#one></content><span id='s6'>66</span></a>";
|
| setBodyContent(bodyContent);
|
| - RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent);
|
| + RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent, "host");
|
|
|
| RefPtrWillBeRawPtr<Element> body = document().body();
|
| RefPtrWillBeRawPtr<Element> host = body->querySelector("#host", ASSERT_NO_EXCEPTION);
|
| @@ -93,7 +93,7 @@ TEST_F(VisibleSelectionTest, ShadowDistributedNodes)
|
| const char* bodyContent = "<p id='host'>00<b id='one'>11</b><b id='two'>22</b>33</p>";
|
| const char* shadowContent = "<a><span id='s4'>44</span><content select=#two></content><span id='s5'>55</span><content select=#one></content><span id='s6'>66</span></a>";
|
| setBodyContent(bodyContent);
|
| - RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent);
|
| + RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent, "host");
|
|
|
| RefPtrWillBeRawPtr<Element> body = document().body();
|
| RefPtrWillBeRawPtr<Element> one = body->querySelector("#one", ASSERT_NO_EXCEPTION);
|
| @@ -114,7 +114,7 @@ TEST_F(VisibleSelectionTest, ShadowNested)
|
| const char* shadowContent = "<a><span id='s4'>44</span><content select=#two></content><span id='s5'>55</span><content select=#one></content><span id='s6'>66</span></a>";
|
| const char* shadowContent2 = "<span id='s7'>77</span><content></content><span id='s8'>88</span>";
|
| setBodyContent(bodyContent);
|
| - RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent);
|
| + RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = setShadowContent(shadowContent, "host");
|
| RefPtrWillBeRawPtr<ShadowRoot> shadowRoot2 = createShadowRootForElementWithIDAndSetInnerHTML(*shadowRoot, "s5", shadowContent2);
|
|
|
| RefPtrWillBeRawPtr<Element> body = document().body();
|
|
|