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

Side by Side Diff: LayoutTests/fast/dom/shadow/adopt-node-with-shadow-root.html

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="console"></div> 7 <div id="console"></div>
8 <object data="data:image/svg+xml;base64,PFNWR1Rlc3RDYXNlIGlkPSJzIj4=" id="root" onload="test()"/> 8 <object data="data:image/svg+xml;base64,PFNWR1Rlc3RDYXNlIGlkPSJzIj4=" id="root" onload="test()"/>
9 <script> 9 <script>
10 function test() { 10 function test() {
11 var foreignDocument = document.getElementById('root').contentDocument; 11 var foreignDocument = document.getElementById('root').contentDocument;
12 shadow = foreignDocument.getElementById('s').createShadowRoot(); 12 shadow = foreignDocument.getElementById('s').createShadowRoot();
13 shouldThrow("document.adoptNode(shadow)"); 13 shouldThrow("document.adoptNode(shadow)");
14 location.reload();
15 } 14 }
16 </script> 15 </script>
17 </body> 16 </body>
18 </html> 17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698