Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: Source/core/editing/EditingTestBase.cpp

Issue 1204843003: Add StyledMarkupSerializerTest.AcrossShadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/EditingTestBase.h ('k') | Source/core/editing/StyledMarkupSerializerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/EditingTestBase.cpp
diff --git a/Source/core/editing/EditingTestBase.cpp b/Source/core/editing/EditingTestBase.cpp
index 16226f71cc9dbf615a8d5fbf6aebba5c93c3301c..6b251281d31a70bb78cdafb9b1cbecab411bef2d 100644
--- a/Source/core/editing/EditingTestBase.cpp
+++ b/Source/core/editing/EditingTestBase.cpp
@@ -44,9 +44,9 @@ void EditingTestBase::setBodyContent(const char* bodyContent)
document().body()->setInnerHTML(String::fromUTF8(bodyContent), ASSERT_NO_EXCEPTION);
}
-PassRefPtrWillBeRawPtr<ShadowRoot> EditingTestBase::setShadowContent(const char* shadowContent)
+PassRefPtrWillBeRawPtr<ShadowRoot> EditingTestBase::setShadowContent(const char* shadowContent, const char* host)
{
- RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = createShadowRootForElementWithIDAndSetInnerHTML(document(), "host", shadowContent);
+ RefPtrWillBeRawPtr<ShadowRoot> shadowRoot = createShadowRootForElementWithIDAndSetInnerHTML(document(), host, shadowContent);
document().recalcDistribution();
return shadowRoot.release();
}
« no previous file with comments | « Source/core/editing/EditingTestBase.h ('k') | Source/core/editing/StyledMarkupSerializerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698