OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 <html> | 2 <html> |
3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 | 4 |
5 <pre id="console"></pre> | 5 <pre id="console"></pre> |
6 | 6 |
7 <script> | 7 <script> |
8 description('Calling ShadowRoot.cloneNode() should throw a DataCloneError except
ion.'); | 8 description('Calling ShadowRoot.cloneNode() should throw a NotSupportedError exc
eption.'); |
9 | 9 |
10 var host = document.createElement('div'); | 10 var host = document.createElement('div'); |
11 var shadowRoot = host.createShadowRoot(); | 11 var shadowRoot = host.createShadowRoot(); |
12 shouldThrow('shadowRoot.cloneNode()', '"DataCloneError: Failed to execute \'clon
eNode\' on \'ShadowRoot\': ShadowRoot nodes are not clonable."'); | 12 shouldThrow('shadowRoot.cloneNode()', '"NotSupportedError: Failed to execute \'c
loneNode\' on \'ShadowRoot\': ShadowRoot nodes are not clonable."'); |
13 </script> | 13 </script> |
14 </html> | 14 </html> |
OLD | NEW |