Index: LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html |
diff --git a/LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html b/LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..46fcb2805c275c374eed916ddb1e3badc1a532a3 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<template> |
+<x-custom></x-custom> |
+</template> |
+<script src="../../js/resources/js-test-pre.js"></script> |
+<script> |
+description('Custom element wrappers in templates should be retained'); |
+ |
+document.register('x-custom', { |
+ prototype: { |
+ createdCallback: function() { |
+ this.expando = 'present'; |
+ } |
+ } |
+}); |
+ |
+gc(); |
haraken
2013/10/30 00:09:53
You might also want to add a test for minorGC().
|
+ |
+var template = document.querySelector('template'); |
+var customElement = template.content.querySelector('x-custom'); |
+shouldBeEqualToString('customElement.expando', 'present'); |
+</script> |
+<script src="../../js/resources/js-test-post.js"></script> |