commit ddbdee049caf098016c2a2b327bed9c77a124788
parent 9a81271d1c4419fa7cbd922d33b2fe763d6d83b8
Author: Oriol Brufau <obrufau@igalia.com>
Date: Wed, 15 Oct 2025 08:58:24 +0000
Bug 1994003 [wpt PR 55393] - Split intersection-ratio-ib-split.html test into 2 subtests, a=testonly
Automatic update from web-platform-tests
Split intersection-ratio-ib-split.html test into 2 subtests
This test check 2 cases in the same subtest. Servo fails the 1st one,
which hides the fact that the 2nd one is timing out because of #39831.
It seems better to split the test into 2 subtests.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
--
wpt-commits: 42403e183427ac50fe9f30fc616abb186f950664
wpt-pr: 55393
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/testing/web-platform/tests/intersection-observer/intersection-ratio-ib-split.html b/testing/web-platform/tests/intersection-observer/intersection-ratio-ib-split.html
@@ -22,8 +22,8 @@
// Account for rounding differences when viewport sizes can't cleanly divide.
const epsilon = 1;
-promise_test(async function() {
- for (let element of document.querySelectorAll("inline, block")) {
+for (let element of document.querySelectorAll("inline, block")) {
+ promise_test(async function() {
let entries = await new Promise(resolve => {
new IntersectionObserver(resolve).observe(element);
});
@@ -40,6 +40,6 @@ promise_test(async function() {
assert_rects_equal(entries[0].boundingClientRect, element.getBoundingClientRect(), element.nodeName + ": boundingClientRect should match");
assert_rects_equal(entries[0].intersectionRect, entries[0].boundingClientRect, element.nodeName + ": intersectionRect should match entry.boundingClientRect");
- }
-}, "IntersectionObserver on an IB split gets the right intersection ratio");
+ }, "IntersectionObserver on an IB split gets the right intersection ratio - " + element.tagName);
+}
</script>