| OLD | NEW |
| 1 This is a testharness.js-based test. | 1 This is a testharness.js-based test. |
| 2 PASS Check the existence of Element.attachShadow | 2 PASS Check the existence of Element.attachShadow |
| 3 PASS Nodes other than Element should not have attachShadow | 3 PASS Nodes other than Element should not have attachShadow |
| 4 FAIL Element.attachShadow must throw a TypeError if mode is not "open" or "close
d" assert_throws: attachShadow must throw a TypeError when mode is omitted funct
ion "function () { | 4 PASS Element.attachShadow must throw a TypeError if mode is not "open" or "close
d" |
| 5 document.createElement('div').attac..." did not throw | |
| 6 PASS Element.attachShadow must create an instance of ShadowRoot | 5 PASS Element.attachShadow must create an instance of ShadowRoot |
| 7 PASS Element.attachShadow must throw a InvalidStateError if the context object a
lready hosts a shadow tree | 6 PASS Element.attachShadow must throw a InvalidStateError if the context object a
lready hosts a shadow tree |
| 8 FAIL Element.attachShadow must throw a NotSupportedError for button, details, in
put, marquee, meter, progress, select, textarea, and keygen elements assert_thro
ws: Calling attachShadow({mode: "open"}) on button element must throw function "
function () { | 7 FAIL Element.attachShadow must throw a NotSupportedError for button, details, in
put, marquee, meter, progress, select, textarea, and keygen elements assert_thro
ws: Calling attachShadow({mode: "open"}) on button element must throw function "
function () { |
| 9 document.createElement(elementN..." did not throw | 8 document.createElement(elementN..." did not throw |
| 10 Harness: the test ran to completion. | 9 Harness: the test ran to completion. |
| 11 | 10 |
| OLD | NEW |