| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../resources/js-test.js"></script> |
| 3 <script> | 3 <script> |
| 4 description('This tests multiple shadow roots creation with createShadowRoot and
mode parameter.'); | 4 description('This tests multiple shadow roots creation with createShadowRoot and
mode parameter.'); |
| 5 | 5 |
| 6 function shouldBeV0ShadowRoot(root) { | 6 function shouldBeV0ShadowRoot(root) { |
| 7 shouldBeEqualToString('internals.shadowRootType(' + root + ')', 'V0ShadowRoo
t'); | 7 shouldBeEqualToString('internals.shadowRootType(' + root + ')', 'V0ShadowRoo
t'); |
| 8 } | 8 } |
| 9 | 9 |
| 10 function shouldBeOpenShadowRoot(root) { | 10 function shouldBeOpenShadowRoot(root) { |
| 11 shouldBeEqualToString('internals.shadowRootType(' + root + ')', 'OpenShadowR
oot'); | 11 shouldBeEqualToString('internals.shadowRootType(' + root + ')', 'OpenShadowR
oot'); |
| 12 } | 12 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 var input = document.createElement('input'); | 63 var input = document.createElement('input'); |
| 64 shouldBeUserAgentShadowRoot('internals.shadowRoot(input)'); | 64 shouldBeUserAgentShadowRoot('internals.shadowRoot(input)'); |
| 65 shouldThrow('input.createShadowRoot()'); | 65 shouldThrow('input.createShadowRoot()'); |
| 66 | 66 |
| 67 input = document.createElement('input'); | 67 input = document.createElement('input'); |
| 68 shouldThrow('input.attachShadow({mode: "open"})'); | 68 shouldThrow('input.attachShadow({mode: "open"})'); |
| 69 | 69 |
| 70 input = document.createElement('input'); | 70 input = document.createElement('input'); |
| 71 shouldThrow('input.attachShadow({mode: "closed"})'); | 71 shouldThrow('input.attachShadow({mode: "closed"})'); |
| 72 </script> | 72 </script> |
| OLD | NEW |