a
b

Summary

Harness status: OK

Found 13 tests

Details

ResultTest NameMessage
Passdocument.caretPositionFromPoint() throws when called without the correct parameters
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { document.caretPositionFromPoint(5, 5, "foo"); }")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:13:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => { document.caretPositionFromPoint(5, 5, 6); }")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:14:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:26:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:27:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:28:5)
Pass
assert_equals(Text node "hello, world", Text node "hello, world")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:29:5)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:30:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to an input element which is the offsetNode.
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:40:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:41:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:42:5)
Pass
assert_equals(Element node <input value="text inside input"></input>, Element node <input value="text inside input"></input>)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:43:5)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:44:5)
Faildocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to a textarea element which is the offsetNode.assert_equals: expected 4 but got 5
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/shadow-dom/Document-caretPositionFromPoint.tentative.html:58:5)
    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/Document-caretPositionFromPoint.tentative.html:47:1
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:54:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:55:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:56:5)
Pass
assert_equals(Element node <textarea rows="2" cols="4">12345678901234567890</textarea>, Element node <textarea rows="2" cols="4">12345678901234567890</textarea>)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:57:5)
Fail
assert_equals(5, 4)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:58:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to a closed shadaw tree when the shadow tree is specified as an argument
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:72:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:73:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:74:5)
Pass
assert_equals(Text node "hello, world", Text node "hello, world")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:75:5)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:76:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location when the non-intersecting shadow tree is specified as an argument
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:96:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:97:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:98:5)
Pass
assert_equals(Text node "abcd", Text node "abcd")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:99:5)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:100:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to an input element when the shadow tree is specified as an argument.
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:117:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:118:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:119:5)
Pass
assert_equals(Element node <input value="text inside input"></input>, Element node <input value="text inside input"></input>)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:120:5)
Pass
assert_equals(0, 0)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:121:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the input element's shadow host's parent when the shadow tree is not specified as an argument.
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:138:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:139:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:140:5)
Pass
assert_equals(Element node <div id="container">         a<div id="host">            ..., Element node <div id="container">         a<div id="host">            ...)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:141:5)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:142:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the shadow host's parent when the shadow tree is not specified as an argument
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:161:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:162:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:163:5)
Pass
assert_equals(Element node <div id="container">         a<div id="host">            ..., Element node <div id="container">         a<div id="host">            ...)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:164:5)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:165:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the outer shadow host's parent when the point is in an inner shadow tree and no shadow tree is specified as an argument
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:190:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:191:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:192:5)
Pass
assert_equals(Element node <div id="container">         a<div id="outerHost">       ..., Element node <div id="container">         a<div id="outerHost">       ...)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:193:5)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:194:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the inner shadow tree when the point is in an inner shadow tree and the inner shadow tree is specified as an argument
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:219:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:220:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:221:5)
Pass
assert_equals(Text node "some text", Text node "some text")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:222:5)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:223:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the outer shadow tree when the point is in an inner shadow tree and the outer shadow tree is specified as an argument
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:248:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:249:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:250:5)
Pass
assert_equals(DocumentFragment node with 5 children, DocumentFragment node with 5 children)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:251:5)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:252:5)
Passdocument.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the inner shadow tree when the point is in an inner shadow tree and the inner shadow tree and the outer shadow tree are specified as an argument
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:278:5)
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:279:5)
Pass
assert_equals("number", "number")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:280:5)
Pass
assert_equals(Text node "some text", Text node "some text")
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:281:5)
Pass
assert_equals(2, 2)
    at Test.<anonymous> ( /shadow-dom/Document-caretPositionFromPoint.tentative.html:282:5)