5 var proto
= Object
.create(HTMLElement
.prototype);
6 proto
.createdCallback = function () {
7 window
.upgradeIds
.push(this.id
);
10 var ctor
= document
.registerElement('x-a', {prototype: proto
});
14 assert_array_equals(window
.upgradeIds
, ['a1', 'a2'], 'Elements in an import should be upgraded by a definition in the import.');
15 }, 'upgrade in an import (in import)');
19 <link rel=
"import" href=
"import-block-upgrade-in-import-grandchild.html">