0123456789
0123456789

Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
PassCSS.highlights.highlightsFromPoint() should throw when called with nodes that are not ShadowRoot objects in options.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { CSS.highlights.highlightsFromPoint(10, 10, {shadowRoots: [container]}); }")
    at Test.<anonymous> ( /shadow-dom/HighlightRegistry-highlightsFromPoint.html:22:9)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { CSS.highlights.highlightsFromPoint(10, 10, {shadowRoots: [shadowRoot, container]}); }")
    at Test.<anonymous> ( /shadow-dom/HighlightRegistry-highlightsFromPoint.html:28:9)
FailCSS.highlights.highlightsFromPoint() returns Highlights present at a given point inside a shadow tree in the right order.CSS.highlights.highlightsFromPoint is not a function
TypeError: CSS.highlights.highlightsFromPoint is not a function
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/shadow-dom/HighlightRegistry-highlightsFromPoint.html:60:41)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/shadow-dom/HighlightRegistry-highlightsFromPoint.html:31:5
Asserts runNo asserts ran
FailCSS.highlights.highlightsFromPoint() doesn't return Highlights that are not painted at the given coordinates even when they fall inside the Highlights' rangesCSS.highlights.highlightsFromPoint is not a function
TypeError: CSS.highlights.highlightsFromPoint is not a function
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/shadow-dom/HighlightRegistry-highlightsFromPoint.html:112:41)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/shadow-dom/HighlightRegistry-highlightsFromPoint.html:81:5
Asserts runNo asserts ran