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

Side by Side 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: Patch for landing Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <div id="container">
3 <template>
4 <x-custom></x-custom>
5 </template>
6 </div>
7 <script src="../../js/resources/js-test-pre.js"></script>
8 <script>
9 description('Custom element wrappers in templates should be retained');
10
11 document.register('x-custom', {
12 prototype: {
13 createdCallback: function() {
14 this.expando = 'present';
15 }
16 }
17 });
18
19 debug("Testing major GC...");
20 gc();
21
22 var template = document.querySelector('template');
23 var customElement = template.content.querySelector('x-custom');
24 shouldBeEqualToString('customElement.expando', 'present');
25
26 container.innerHTML = container.innerHTML;
27
28 debug("Testing minor GC...");
29 minorGC();
30
31 var template = document.querySelector('template');
32 var customElement = template.content.querySelector('x-custom');
33 shouldBeEqualToString('customElement.expando', 'present');
34 </script>
35 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698