OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <template> | |
3 <x-custom></x-custom> | |
4 </template> | |
5 <script src="../../js/resources/js-test-pre.js"></script> | |
6 <script> | |
7 description('Custom element wrappers in templates should be retained'); | |
8 | |
9 document.register('x-custom', { | |
10 prototype: { | |
11 createdCallback: function() { | |
12 this.expando = 'present'; | |
13 } | |
14 } | |
15 }); | |
16 | |
17 gc(); | |
haraken
2013/10/30 00:09:53
You might also want to add a test for minorGC().
| |
18 | |
19 var template = document.querySelector('template'); | |
20 var customElement = template.content.querySelector('x-custom'); | |
21 shouldBeEqualToString('customElement.expando', 'present'); | |
22 </script> | |
23 <script src="../../js/resources/js-test-post.js"></script> | |
OLD | NEW |