Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / shadow / adopt-node-with-shadow-root.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="console"></div>
8 <object data="data:image/svg+xml;base64,PFNWR1Rlc3RDYXNlIGlkPSJzIj4=" id="root" onload="test()"/>
9 <script>
10 function test() {
11     var foreignDocument = document.getElementById('root').contentDocument;
12     shadow = foreignDocument.getElementById('s').createShadowRoot();
13     shouldThrow("document.adoptNode(shadow)");
14 }
15 </script>
16 </body>
17 </html>