7 <script src=
"../../../resources/js-test.js"></script>
9 description('Custom element wrappers in templates should be retained');
13 document
.querySelector('template').content
.ownerDocument
.registerElement('x-custom', {
15 createdCallback: function() {
16 this.expando
= 'present';
21 var template
, customElement
;
23 debug("Testing major GC...");
25 template
= document
.querySelector('template');
26 customElement
= template
.content
.querySelector('x-custom');
27 shouldBeEqualToString('customElement.expando', 'present');
29 container
.innerHTML
= container
.innerHTML
;
31 debug("Testing minor GC...");
32 asyncMinorGC(function() {
33 template
= document
.querySelector('template');
34 customElement
= template
.content
.querySelector('x-custom');
35 shouldBeEqualToString('customElement.expando', 'present');