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

Side by Side Diff: LayoutTests/fast/dom/shadow/title-element-in-shadow.html

Issue 14594006: Remove Internals::createShadowRoot(element) and polyfill.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months 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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/polyfill.js"></script>
5 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
6 </head> 5 </head>
7 <body> 6 <body>
8 <script> 7 <script>
9 description("This test ensures that title elements in a shadow subtree do not af fect document.title attribute.") 8 description("This test ensures that title elements in a shadow subtree do not af fect document.title attribute.")
10 9
11 debug('create a title element and insert it to document.'); 10 debug('create a title element and insert it to document.');
12 var title = document.createElement('title'); 11 var title = document.createElement('title');
13 title.appendChild(document.createTextNode('document title')); 12 title.appendChild(document.createTextNode('document title'));
14 document.head.appendChild(title); 13 document.head.appendChild(title);
(...skipping 22 matching lines...) Expand all
37 document.head.appendChild(subtree2); 36 document.head.appendChild(subtree2);
38 shouldBe('document.title', '""'); 37 shouldBe('document.title', '""');
39 debug('remove the subtree from document'); 38 debug('remove the subtree from document');
40 document.head.removeChild(subtree2); 39 document.head.removeChild(subtree2);
41 shouldBe('document.title', '""'); 40 shouldBe('document.title', '""');
42 41
43 </script> 42 </script>
44 <script src="../../js/resources/js-test-post.js"></script> 43 <script src="../../js/resources/js-test-post.js"></script>
45 </body> 44 </body>
46 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698