Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / resources / import-block-upgrade-in-import-child.html
blobe6e3d4936a894dc4ce91f1e12ce8f89e72eeea73
1 <!DOCTYPE html>
2 <x-a id="a2"></x-a>
3 <script>
4 (function() {
5 var proto = Object.create(HTMLElement.prototype);
6 proto.createdCallback = function () {
7 window.upgradeIds.push(this.id);
8 };
10 var ctor = document.registerElement('x-a', {prototype: proto});
11 })();
13 test(function () {
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)');
16 </script>
17 <x-a id="a3"></x-a>
18 <x-b id="b0"></x-b>
19 <link rel="import" href="import-block-upgrade-in-import-grandchild.html">
20 <x-a id="a4"></x-a>
21 <x-b id="b3"></x-b>