| Index: third_party/WebKit/Source/core/dom/TreeScopeTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/TreeScopeTest.cpp b/third_party/WebKit/Source/core/dom/TreeScopeTest.cpp
|
| index a5f1335f8666711ab11418cb594d6f468803c4d1..90053b2db42a7b79aa04183ec7d82a1ca0dc92aa 100644
|
| --- a/third_party/WebKit/Source/core/dom/TreeScopeTest.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TreeScopeTest.cpp
|
| @@ -16,8 +16,7 @@ TEST(TreeScopeTest, CommonAncestorOfSameTrees) {
|
| Document* document = Document::create();
|
| EXPECT_EQ(document, document->commonAncestorTreeScope(*document));
|
|
|
| - Element* html = document->createElement("html", StringOrDictionary(),
|
| - ASSERT_NO_EXCEPTION);
|
| + Element* html = document->createElement("html", StringOrDictionary());
|
| document->appendChild(html, ASSERT_NO_EXCEPTION);
|
| ShadowRoot* shadowRoot =
|
| html->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION);
|
| @@ -30,8 +29,7 @@ TEST(TreeScopeTest, CommonAncestorOfInclusiveTrees) {
|
| // shadowRoot
|
|
|
| Document* document = Document::create();
|
| - Element* html = document->createElement("html", StringOrDictionary(),
|
| - ASSERT_NO_EXCEPTION);
|
| + Element* html = document->createElement("html", StringOrDictionary());
|
| document->appendChild(html, ASSERT_NO_EXCEPTION);
|
| ShadowRoot* shadowRoot =
|
| html->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION);
|
| @@ -46,14 +44,11 @@ TEST(TreeScopeTest, CommonAncestorOfSiblingTrees) {
|
| // A B
|
|
|
| Document* document = Document::create();
|
| - Element* html = document->createElement("html", StringOrDictionary(),
|
| - ASSERT_NO_EXCEPTION);
|
| + Element* html = document->createElement("html", StringOrDictionary());
|
| document->appendChild(html, ASSERT_NO_EXCEPTION);
|
| - Element* head = document->createElement("head", StringOrDictionary(),
|
| - ASSERT_NO_EXCEPTION);
|
| + Element* head = document->createElement("head", StringOrDictionary());
|
| html->appendChild(head);
|
| - Element* body = document->createElement("body", StringOrDictionary(),
|
| - ASSERT_NO_EXCEPTION);
|
| + Element* body = document->createElement("body", StringOrDictionary());
|
| html->appendChild(body);
|
|
|
| ShadowRoot* shadowRootA =
|
| @@ -73,14 +68,11 @@ TEST(TreeScopeTest, CommonAncestorOfTreesAtDifferentDepths) {
|
| // A
|
|
|
| Document* document = Document::create();
|
| - Element* html = document->createElement("html", StringOrDictionary(),
|
| - ASSERT_NO_EXCEPTION);
|
| + Element* html = document->createElement("html", StringOrDictionary());
|
| document->appendChild(html, ASSERT_NO_EXCEPTION);
|
| - Element* head = document->createElement("head", StringOrDictionary(),
|
| - ASSERT_NO_EXCEPTION);
|
| + Element* head = document->createElement("head", StringOrDictionary());
|
| html->appendChild(head);
|
| - Element* body = document->createElement("body", StringOrDictionary(),
|
| - ASSERT_NO_EXCEPTION);
|
| + Element* body = document->createElement("body", StringOrDictionary());
|
| html->appendChild(body);
|
|
|
| ShadowRoot* shadowRootY =
|
| @@ -88,8 +80,7 @@ TEST(TreeScopeTest, CommonAncestorOfTreesAtDifferentDepths) {
|
| ShadowRoot* shadowRootB =
|
| body->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION);
|
|
|
| - Element* divInY =
|
| - document->createElement("div", StringOrDictionary(), ASSERT_NO_EXCEPTION);
|
| + Element* divInY = document->createElement("div", StringOrDictionary());
|
| shadowRootY->appendChild(divInY);
|
| ShadowRoot* shadowRootA =
|
| divInY->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION);
|
|
|