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

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

Issue 117313008: Update Custom Elements API to new names. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update for forgotten tests. Created 7 years 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/custom/attribute-changed-callback.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <div id="container"> 2 <div id="container">
3 <template> 3 <template>
4 <x-custom></x-custom> 4 <x-custom></x-custom>
5 </template> 5 </template>
6 </div> 6 </div>
7 <script src="../../../resources/js-test.js"></script> 7 <script src="../../../resources/js-test.js"></script>
8 <script> 8 <script>
9 description('Custom element wrappers in templates should be retained'); 9 description('Custom element wrappers in templates should be retained');
10 10
11 document.querySelector('template').content.ownerDocument.register('x-custom', { 11 document.querySelector('template').content.ownerDocument.registerElement('x-cust om', {
12 prototype: { 12 prototype: {
13 createdCallback: function() { 13 createdCallback: function() {
14 this.expando = 'present'; 14 this.expando = 'present';
15 } 15 }
16 } 16 }
17 }); 17 });
18 18
19 debug("Testing major GC..."); 19 debug("Testing major GC...");
20 gc(); 20 gc();
21 21
22 var template = document.querySelector('template'); 22 var template = document.querySelector('template');
23 var customElement = template.content.querySelector('x-custom'); 23 var customElement = template.content.querySelector('x-custom');
24 shouldBeEqualToString('customElement.expando', 'present'); 24 shouldBeEqualToString('customElement.expando', 'present');
25 25
26 container.innerHTML = container.innerHTML; 26 container.innerHTML = container.innerHTML;
27 27
28 debug("Testing minor GC..."); 28 debug("Testing minor GC...");
29 minorGC(); 29 minorGC();
30 30
31 var template = document.querySelector('template'); 31 var template = document.querySelector('template');
32 var customElement = template.content.querySelector('x-custom'); 32 var customElement = template.content.querySelector('x-custom');
33 shouldBeEqualToString('customElement.expando', 'present'); 33 shouldBeEqualToString('customElement.expando', 'present');
34 </script> 34 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/attribute-changed-callback.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698