Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc.html

Issue 48633006: Teach V8GCController how to traverse TemplateContentDocumentFragment::host (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/scripts/IDLAttributes.txt » ('j') | Source/bindings/v8/V8GCController.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | Source/bindings/scripts/IDLAttributes.txt » ('j') | Source/bindings/v8/V8GCController.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698