Skip to content

Commit

Permalink
Update webComponent.html
Browse files Browse the repository at this point in the history
  • Loading branch information
yandeu committed Dec 26, 2024
1 parent 20ce77b commit cb0bed0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/browser/webComponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
myCustomElement?.shadowRoot?.innerHTML === '<div><h1>title</h1>bye123</div>',
'Shadow should contain "title" and "bye123"'
)

// update attribute hello
myCustomElement.setAttribute("hello", 456)
Test.error(
myCustomElement?.shadowRoot?.innerHTML === '<div><h1>title</h1>bye456</div>',
'Shadow should contain "title" and "bye456"'
)
})

describe('slot-test', async () => {
Expand Down

0 comments on commit cb0bed0

Please sign in to comment.