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

Unified Diff: third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html

Issue 2299033005: Pass the old and new owner documents to the adoptedCallback. (Closed)
Patch Set: WTF_ARRAY_LENGTH Created 4 years, 3 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 | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html
diff --git a/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html b/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html
index 023fb83dad6daf52b8bc55d9b3a380f82f3015a7..039c6b742c77e06fd93afc1192ae9486369d24d6 100644
--- a/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html
+++ b/third_party/WebKit/LayoutTests/custom-elements/spec/adopt-node.html
@@ -18,12 +18,12 @@ promise_test((t) => {
.then(([w1, w2]) => {
let invocations = [];
class X extends w1.HTMLElement {
- adoptedCallback() { invocations.push(['adopted', this, []]); }
+ adoptedCallback() { invocations.push(['adopted', this, arguments]); }
}
w1.customElements.define('a-a', X);
let a = w1.document.createElement('a-a');
w2.document.adoptNode(a);
- assert_array_equals_callback_invocations(invocations, [ ['adopted', a, []] ]);
+ assert_array_equals_callback_invocations(invocations, [ ['adopted', a, [w1.document, w2.document]] ]);
});
}, 'adopting a custom element to the different document should enqueue an adoptedCallback reaction');
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698