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 24, 2024
1 parent c65bc5f commit 20ce77b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/browser/webComponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
const myCustomElement = document.querySelector('my-custom-element')
Test.error(myCustomElement.innerHTML === 'invisible', 'Should show text "invisible"')
Test.error(
myCustomElement?.shadowRoot?.innerHTML === '<div><div><h1>title</h1>bye123</div></div>',
myCustomElement?.shadowRoot?.innerHTML === '<div><h1>title</h1>bye123</div>',
'Shadow should contain "title" and "bye123"'
)
})
Expand All @@ -52,7 +52,7 @@
const myCustomElement = document.querySelector('slot-test')
Test.error(myCustomElement.innerHTML === '<span slot="username">John Doe</span>', 'Should show span')
Test.error(
myCustomElement?.shadowRoot?.innerHTML === '<div><p>Hello: <slot name="username"></slot></p></div>',
myCustomElement?.shadowRoot?.innerHTML === '<p>Hello: <slot name="username"></slot></p>',
'Hello: John Doe'
)
})
Expand Down

0 comments on commit 20ce77b

Please sign in to comment.