| CONSOLE WARNING: line 46: Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated and will be removed in M63, around December 2017. See https://www.chromestatus.com/features/4668884095336448 for more details. |
| Tests for ShadowRoot JS APIs. Can only run within DRT |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| PASS window.ShadowRoot is defined. |
| PASS new window.ShadowRoot(document.createElement('div')) threw exception TypeError: Illegal constructor. |
| PASS shadowRoot instanceof window.ShadowRoot is true |
| PASS shadowRoot.getElementById('div1') is div1 |
| PASS shadowRoot.getElementById('foo') is null |
| PASS shadowRoot.querySelector('#div1') is div1 |
| PASS shadowRoot.querySelector('#foo') is null |
| PASS shadowRoot.querySelector('.class2') is div2 |
| PASS shadowRoot.querySelector('.foo') is null |
| PASS shadowRoot.querySelectorAll('div') is [div1, div2] |
| PASS shadowRoot.querySelectorAll('foo') is [] |
| PASS youngerShadowRoot is not shadowRoot |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |