Pass | valid target ranges in Element don't throw exceptions | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:36:3) | Pass | assert_equals(Element node <div contenteditable="" id="target">helloworld</div>, Element node <div contenteditable="" id="target">helloworld</div>)
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:37:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:38:3) | Pass | assert_equals(Element node <div contenteditable="" id="target">helloworld</div>, Element node <div contenteditable="" id="target">helloworld</div>)
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:39:3) | Pass | assert_equals(1, 1)
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:40:3) |
|
Fail | InputEvent constructor throws with invalid range in Element | assert_throws_dom: function "() => {
// This should throw:
let ev = new InputEvent("input",
{
data: "a",
inputType: "insertText",
targetRanges: [
new StaticRange({
startContainer: target,
startOffset: 0,
endContainer: target,
endOffset: 5,
}),
],
});
// Run this in case it doesn't throw, to make sure it doesn't crash:
ev.getTargetRanges()[0].endOffset;
}" did not throw at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/input-events/input-events-range-exceptions.tentative.html:45:3)
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/input-events/input-events-range-exceptions.tentative.html:43:1 Asserts runFail | assert_throws_dom("IndexSizeError", function "() => { // This should throw: let ev = new InputEvent("input", { data: "a", inputType: "insertText", targetRanges: [ new StaticRange({ startContainer: target, startOffset: 0, endContainer: target, endOffset: 5, }), ], }); // Run this in case it doesn't throw, to make sure it doesn't crash: ev.getTargetRanges()[0].endOffset; }")
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:45:3) |
|
Pass | valid target ranges in Text don't throw exceptions | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:85:3) | Pass | assert_equals(Text node "heeello", Text node "heeello")
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:86:3) | Pass | assert_equals(0, 0)
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:87:3) | Pass | assert_equals(Text node "heeello", Text node "heeello")
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:88:3) | Pass | assert_equals(5, 5)
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:89:3) |
|
Fail | InputEvent constructor throws with invalid range in Text | assert_throws_dom: function "() => {
// This should throw:
let ev = new InputEvent("input",
{
data: "a",
inputType: "insertText",
targetRanges: [
new StaticRange({
startContainer: text,
startOffset: 0,
endContainer: text,
endOffset: 12,
}),
],
});
// Run this in case it doesn't throw, to make sure it doesn't crash:
ev.getTargetRanges()[0].endOffset;
}" did not throw at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/input-events/input-events-range-exceptions.tentative.html:95:3)
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/input-events/input-events-range-exceptions.tentative.html:92:1 Asserts runFail | assert_throws_dom("IndexSizeError", function "() => { // This should throw: let ev = new InputEvent("input", { data: "a", inputType: "insertText", targetRanges: [ new StaticRange({ startContainer: text, startOffset: 0, endContainer: text, endOffset: 12, }), ], }); // Run this in case it doesn't throw, to make sure it doesn't crash: ev.getTargetRanges()[0].endOffset; }")
at Test.<anonymous> ( /input-events/input-events-range-exceptions.tentative.html:95:3) |
|