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

Side by Side Diff: LayoutTests/fast/dom/shadow/import-shadowroot.html

Issue 6993052: Merge 88137 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/fast/dom/shadow/import-shadowroot-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <keygen id='K'/>
8 <div id='X'></div>
9 <pre id="console">
10 This tests importNode() with bound elements.
11
12 </pre>
13 <script>
14 if (window.layoutTestController) {
15 layoutTestController.dumpAsText();
16
17 var dstDoc = new DOMParser().parseFromString('<div/>', 'text/xml');
18 shouldBeNonNull('dstDoc');
19
20 var srcKeygen = document.getElementById('K');
21 shouldBeNonNull('srcKeygen');
22 var srcShadow = layoutTestController.shadowRoot(srcKeygen);
23 shouldBeNonNull('srcShadow');
24 shouldBeNonNull('srcShadow.firstChild');
25
26 var importedKeygen = dstDoc.importNode(srcKeygen);
27 shouldBeNonNull('importedKeygen');
28 shouldBeTrue('srcKeygen !== importedKeygen');
29
30 var importedShadow = layoutTestController.shadowRoot(importedKeygen);
31 shouldBeNonNull('importedShadow');
32 shouldBeNonNull('importedShadow.firstChild');
33 }
34
35 var successfullyParsed = true;
36 </script>
37 <script src="../../js/resources/js-test-post.js"></script>
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/fast/dom/shadow/import-shadowroot-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698