Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / custom / resources / import-block-upgrade-in-master-child.html
bloba5b0db253baf3c18e5b0e84e4a56804ff41fd68c
1 <!DOCTYPE html>
2 <script>
3 (function() {
4 var proto = Object.create(HTMLElement.prototype);
5 proto.createdCallback = function () {
6 window.upgradeIds.push(this.id);
7 };
9 var ctor = document.registerElement('x-a', {prototype: proto});
10 })();
12 test(function () {
13 assert_array_equals(window.upgradeIds, ['a1'], "This import shouldn't upgrade elements built by overrunning parser.");
14 }, 'upgrade in an import');
15 </script>