Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLTemplateElement / custom-element-wrapper-gc.html
blob79be445674ef1dc25005864bdd6817aede44e68d
1 <!DOCTYPE html>
2 <div id="container">
3 <template>
4 <x-custom></x-custom>
5 </template>
6 </div>
7 <script src="../../../resources/js-test.js"></script>
8 <script>
9 description('Custom element wrappers in templates should be retained');
11 jsTestIsAsync = true;
13 document.querySelector('template').content.ownerDocument.registerElement('x-custom', {
14 prototype: {
15 createdCallback: function() {
16 this.expando = 'present';
19 });
21 var template, customElement;
23 debug("Testing major GC...");
24 asyncGC(function() {
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');
36 finishJSTest();
37 });
38 });
41 </script>