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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp

Issue 2170383002: CustomElements: adopt node (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge conflict resolution Created 4 years, 4 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
Index: third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp
index c22db95903d2186c4b0630dc264177ca113cd4aa..96321e13cc3ce80232d24c1a4d4ea8c3d0e5be7d 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistryTest.cpp
@@ -290,6 +290,7 @@ public:
Constructor,
ConnectedCallback,
DisconnectedCallback,
+ AdoptedCallback,
AttributeChangedCallback,
};
Vector<MethodType> m_logs;
@@ -316,6 +317,7 @@ public:
bool hasConnectedCallback() const override { return true; }
bool hasDisconnectedCallback() const override { return true; }
+ bool hasAdoptedCallback() const override {return true;}
void runConnectedCallback(Element* element) override
{
@@ -329,6 +331,12 @@ public:
EXPECT_EQ(element, m_element);
}
+ void runAdoptedCallback(Element* element) override
+ {
+ m_logs.append(AdoptedCallback);
+ EXPECT_EQ(element, m_element);
+ }
+
void runAttributeChangedCallback(Element* element, const QualifiedName& name, const AtomicString& oldValue, const AtomicString& newValue) override
{
m_logs.append(AttributeChangedCallback);

Powered by Google App Engine
This is Rietveld 408576698