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

Unified Diff: third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html

Issue 2828643002: Make customElements.define faster
Patch Set: Try to make Android builder happy. Created 3 years, 8 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/LayoutTests/custom-elements/spec/define-element.html
diff --git a/third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html b/third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html
index a61859e8d0aafdae8b5080dd67b8a1538fbed351..3f15bb749b434bf32334a713c85691d3db4c132b 100644
--- a/third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html
+++ b/third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html
@@ -91,13 +91,13 @@ test_with_window((w) => {
promise_test((t) => {
return Promise.all([create_window_in_test(t), create_window_in_test(t)])
.then(([w1, w2]) => {
- class X extends w2.HTMLElement { };
+ class X extends w1.HTMLElement { };
w1.customElements.define('first-name', X);
w2.customElements.define('second-name', X);
assert_equals(
- new X().localName, 'second-name',
+ new X().localName, 'first-name',
'the current global object should determine which definition is ' +
- 'operative; because X extends w2.HTMLElement, w2 is operative');
+ 'operative; because X extends w1.HTMLElement, w1 is operative');
});
}, 'HTMLElement constructor looks up definitions in the current global-' +
'reused constructor');

Powered by Google App Engine
This is Rietveld 408576698