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

Side by Side Diff: LayoutTests/fast/dom/HTMLTemplateElement/cloneNode.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <template id="template"><span>Contents</span></template> 2 <template id="template"><span>Contents</span></template>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <script> 4 <script>
5 5
6 description('Test that template contents are not cloned when the template elemen t is cloned'); 6 description('Test that template contents are not cloned when the template elemen t is cloned');
7 7
8 var template = document.getElementById('template'); 8 var template = document.getElementById('template');
9 var div = template.appendChild(document.createElement('div')); 9 var div = template.appendChild(document.createElement('div'));
10 10
11 shouldBe('template.content.childNodes.length', '1'); 11 shouldBe('template.content.childNodes.length', '1');
12 var clone = template.cloneNode(true); 12 var clone = template.cloneNode(true);
13 shouldBe('clone.content.childNodes.length', '1'); 13 shouldBe('clone.content.childNodes.length', '1');
14 shouldBe('clone.outerHTML', 'template.outerHTML'); 14 shouldBe('clone.outerHTML', 'template.outerHTML');
15 shouldNotBe('clone.content.firstChild', 'template.content.firstChild'); 15 shouldNotBe('clone.content.firstChild', 'template.content.firstChild');
16 shouldNotBe('clone.content', 'template.content'); 16 shouldNotBe('clone.content', 'template.content');
17 shouldBe('clone.firstChild.tagName', '"DIV"'); 17 shouldBe('clone.firstChild.tagName', '"DIV"');
18 shouldNotBe('clone.firstChild', 'div'); 18 shouldNotBe('clone.firstChild', 'div');
19 19
20 </script> 20 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/HTMLTableSectionElement/rows.html ('k') | LayoutTests/fast/dom/HTMLTemplateElement/contentWrappers.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698