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

Side by Side Diff: LayoutTests/http/tests/htmlimports/resources/import-custom-element-helper.js

Issue 249563003: REGRESSION(r171966): Custom elements in async imports don't get upgrade. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 function registerTestingCustomElement(tagName) {
3 var definition = function() {};
4 definition.prototype = Object.create(HTMLElement.prototype);
5 definition.prototype.createdCallback = function() {
6 if (typeof this.constructor.ids === "undefined")
7 this.constructor.ids = [];
8 this.constructor.ids.push(this.id);
9 }
10
11 var ctor = document.registerElement(tagName, definition);
12 return ctor;
13 }
14
15 function ImportTestLatch(test, count) {
16 this.loaded = function() {
17 count--;
18 if (!count)
19 test();
20 };
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698