OLD | NEW |
1 CONSOLE WARNING: Calling Element.createShadowRoot() for an element which already
hosts a shadow root is deprecated. See https://www.chromestatus.com/features/46
68884095336448 for more details. | 1 CONSOLE WARNING: line 46: Calling Element.createShadowRoot() for an element whic
h already hosts a shadow root is deprecated. See https://www.chromestatus.com/fe
atures/4668884095336448 for more details. |
2 Tests for ShadowRoot JS APIs. Can only run within DRT | 2 Tests for ShadowRoot JS APIs. Can only run within DRT |
3 | 3 |
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
5 | 5 |
6 | 6 |
7 PASS window.ShadowRoot is defined. | 7 PASS window.ShadowRoot is defined. |
8 PASS new window.ShadowRoot(document.createElement('div')) threw exception TypeEr
ror: Illegal constructor. | 8 PASS new window.ShadowRoot(document.createElement('div')) threw exception TypeEr
ror: Illegal constructor. |
9 PASS shadowRoot instanceof window.ShadowRoot is true | 9 PASS shadowRoot instanceof window.ShadowRoot is true |
10 PASS shadowRoot.getElementById('div1') is div1 | 10 PASS shadowRoot.getElementById('div1') is div1 |
11 PASS shadowRoot.getElementById('foo') is null | 11 PASS shadowRoot.getElementById('foo') is null |
12 PASS shadowRoot.querySelector('#div1') is div1 | 12 PASS shadowRoot.querySelector('#div1') is div1 |
13 PASS shadowRoot.querySelector('#foo') is null | 13 PASS shadowRoot.querySelector('#foo') is null |
14 PASS shadowRoot.querySelector('.class2') is div2 | 14 PASS shadowRoot.querySelector('.class2') is div2 |
15 PASS shadowRoot.querySelector('.foo') is null | 15 PASS shadowRoot.querySelector('.foo') is null |
16 PASS shadowRoot.querySelectorAll('div') is [div1, div2] | 16 PASS shadowRoot.querySelectorAll('div') is [div1, div2] |
17 PASS shadowRoot.querySelectorAll('foo') is [] | 17 PASS shadowRoot.querySelectorAll('foo') is [] |
18 PASS youngerShadowRoot is not shadowRoot | 18 PASS youngerShadowRoot is not shadowRoot |
19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
20 | 20 |
21 TEST COMPLETE | 21 TEST COMPLETE |
22 | 22 |
OLD | NEW |