mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
Tests: Resync imported WPT tests
This commit is contained in:
committed by
Shannon Booth
parent
dda3cb99b7
commit
504a8e6d1d
Notes:
github-actions[bot]
2026-04-04 21:38:15 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/504a8e6d1d3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8776 Reviewed-by: https://github.com/shannonbooth ✅
@@ -75,19 +75,19 @@ customElements.define('open-component', OpenComponent);
|
||||
|
||||
<script>
|
||||
test(() => {
|
||||
assert_equals(closedInnerElement.scrollParent, outerScroller);
|
||||
assert_equals(closedInnerElement.scrollParent(), outerScroller);
|
||||
}, "scrollParent skips intermediate closed shadow tree nodes");
|
||||
|
||||
test(() => {
|
||||
assert_equals(openInnerElement.scrollParent, outerScroller);
|
||||
assert_equals(openInnerElement.scrollParent(), outerScroller);
|
||||
}, "scrollParent skips intermediate open shadow tree nodes");
|
||||
|
||||
test(() => {
|
||||
assert_equals(closedShadowRoot.querySelector('div').scrollParent, outerScroller);
|
||||
assert_equals(closedShadowRoot.querySelector('div').scrollParent(), outerScroller);
|
||||
}, "scrollParent from inside closed shadow tree");
|
||||
|
||||
test(() => {
|
||||
assert_equals(openShadowComponent.shadowRoot.querySelector('div').scrollParent, outerScroller);
|
||||
assert_equals(openShadowComponent.shadowRoot.querySelector('div').scrollParent(), outerScroller);
|
||||
}, "scrollParent from inside open shadow tree");
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user