| OLD | NEW |
| 1 Tests for ShadowRoot JS APIs. Can only run within DRT | 1 Tests for ShadowRoot JS APIs. Can only run within DRT |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS window.ShadowRoot is undefined. |
| 7 PASS window.WebKitShadowRoot is defined. |
| 8 PASS new window.WebKitShadowRoot(document.createElement('div')) threw exception
TypeError: Illegal constructor. |
| 9 PASS shadowRoot instanceof window.WebKitShadowRoot is true |
| 6 PASS shadowRoot.getElementById('div1') is div1 | 10 PASS shadowRoot.getElementById('div1') is div1 |
| 7 PASS shadowRoot.getElementById('foo') is null | 11 PASS shadowRoot.getElementById('foo') is null |
| 8 PASS shadowRoot.getElementsByClassName('class2') is [div2] | 12 PASS shadowRoot.getElementsByClassName('class2') is [div2] |
| 9 PASS shadowRoot.getElementsByClassName('foo') is [] | 13 PASS shadowRoot.getElementsByClassName('foo') is [] |
| 10 PASS shadowRoot.getElementsByTagName('div') is [div1, div2] | 14 PASS shadowRoot.getElementsByTagName('div') is [div1, div2] |
| 11 PASS shadowRoot.getElementsByTagName('foo') is [] | 15 PASS shadowRoot.getElementsByTagName('foo') is [] |
| 12 PASS shadowRoot.getElementsByTagNameNS('*', 'div') is [div1, div2] | 16 PASS shadowRoot.getElementsByTagNameNS('*', 'div') is [div1, div2] |
| 13 PASS shadowRoot.getElementsByTagNameNS('', 'div') is [] | 17 PASS shadowRoot.getElementsByTagNameNS('', 'div') is [] |
| 14 PASS shadowRoot.getElementsByTagNameNS('*', 'foo') is [] | 18 PASS shadowRoot.getElementsByTagNameNS('*', 'foo') is [] |
| 15 PASS shadowRoot.querySelector('#div1') is div1 | 19 PASS shadowRoot.querySelector('#div1') is div1 |
| 16 PASS shadowRoot.querySelector('#foo') is null | 20 PASS shadowRoot.querySelector('#foo') is null |
| 17 PASS shadowRoot.querySelector('.class2') is div2 | 21 PASS shadowRoot.querySelector('.class2') is div2 |
| 18 PASS shadowRoot.querySelector('.foo') is null | 22 PASS shadowRoot.querySelector('.foo') is null |
| 19 PASS shadowRoot.querySelectorAll('div') is [div1, div2] | 23 PASS shadowRoot.querySelectorAll('div') is [div1, div2] |
| 20 PASS shadowRoot.querySelectorAll('foo') is [] | 24 PASS shadowRoot.querySelectorAll('foo') is [] |
| 21 PASS youngerShadowRoot is not shadowRoot | 25 PASS youngerShadowRoot is not shadowRoot |
| 22 PASS successfullyParsed is true | 26 PASS successfullyParsed is true |
| 23 | 27 |
| 24 TEST COMPLETE | 28 TEST COMPLETE |
| 25 | 29 |
| OLD | NEW |