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

Side by Side Diff: LayoutTests/fast/dom/HTMLTemplateElement/cycles.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 <script src="../../js/resources/js-test-pre.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script> 3 <script>
4 description('Test that cycles are not allowed in template content'); 4 description('Test that cycles are not allowed in template content');
5 var template = document.createElement('template'); 5 var template = document.createElement('template');
6 shouldThrow('template.content.appendChild(template)'); 6 shouldThrow('template.content.appendChild(template)');
7 var outerDiv = document.createElement('div'); 7 var outerDiv = document.createElement('div');
8 outerDiv.appendChild(template); 8 outerDiv.appendChild(template);
9 shouldThrow('template.content.appendChild(outerDiv)'); 9 shouldThrow('template.content.appendChild(outerDiv)');
10 var innerDiv = template.content.appendChild(document.createElement('div')); 10 var innerDiv = template.content.appendChild(document.createElement('div'));
11 shouldThrow('innerDiv.appendChild(template)'); 11 shouldThrow('innerDiv.appendChild(template)');
12 shouldThrow('innerDiv.appendChild(outerDiv)'); 12 shouldThrow('innerDiv.appendChild(outerDiv)');
13 var innerTemplate = innerDiv.appendChild(document.createElement('template')); 13 var innerTemplate = innerDiv.appendChild(document.createElement('template'));
14 shouldThrow('innerTemplate.appendChild(outerDiv)'); 14 shouldThrow('innerTemplate.appendChild(outerDiv)');
15 </script> 15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698