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

Side by Side Diff: LayoutTests/fast/dom/HTMLTemplateElement/cycles-in-shadow.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 <body> 2 <body>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <div id=container> 4 <div id=container>
5 <template><div></div></template> 5 <template><div></div></template>
6 </div> 6 </div>
7 <script> 7 <script>
8 description('Test that cycle detection traverses over both templates and shadow roots'); 8 description('Test that cycle detection traverses over both templates and shadow roots');
9 var outerDiv = document.getElementById('container'); 9 var outerDiv = document.getElementById('container');
10 var template = document.querySelector('template'); 10 var template = document.querySelector('template');
11 var div = template.content.firstChild; 11 var div = template.content.firstChild;
12 var shadowRoot = div.createShadowRoot(); 12 var shadowRoot = div.createShadowRoot();
13 var shadowDiv = shadowRoot.appendChild(document.createElement('div')); 13 var shadowDiv = shadowRoot.appendChild(document.createElement('div'));
14 shouldThrow('shadowDiv.appendChild(outerDiv)'); 14 shouldThrow('shadowDiv.appendChild(outerDiv)');
15 </script> 15 </script>
16 </body> 16 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698