abc
will be removed

Summary

Harness status: OK

Found 7 tests

Details

ResultTest NameMessage
PassRedo for execCommand("insertLineBreak") after removing prior sibling with DOM API after undoing
Asserts run
Pass
assert_equals("<i>will be removed</i> abc<br><br>", "<i>will be removed</i> abc<br><br>", "<br> element should be inserted by execCommand(\"insertLineBreak\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:14:3)
Pass
assert_equals("<i>will be removed</i> abc", "<i>will be removed</i> abc", "<br> element should be removed by execCommand(\"undo\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:17:3)
Pass
assert_equals(" abc<br><br>", " abc<br><br>", "<br> element should be inserted by execCommand(\"redo\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:21:3)
PassRedo for execCommand("insertLineBreak") after appending new child with DOM API after undoing
Asserts run
Pass
assert_equals("abc<br><br>", "abc<br><br>", "<br> element should be inserted by execCommand(\"insertLineBreak\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:29:3)
Pass
assert_equals("abc", "abc", "<br> element should be removed by execCommand(\"undo\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:32:3)
Pass
assert_equals("abc<i> appended text</i><br><br>", "abc<i> appended text</i><br><br>", "<br> element should be appended by execCommand(\"redo\") after the appended text")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:38:3)
PassRedo for execCommand("insertLineBreak") after inserting new child with DOM API after undoing
Asserts run
Pass
assert_equals("abc<br><br>", "abc<br><br>", "<br> element should be inserted by execCommand(\"insertLineBreak\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:46:3)
Pass
assert_equals("abc", "abc", "<br> element should be removed by execCommand(\"undo\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:49:3)
Pass
assert_equals("<i>inserted text </i>abc<br><br>", "<i>inserted text </i>abc<br><br>", "<br> element should be appended by execCommand(\"redo\") after the appended text")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:55:3)
PassRedo for execCommand("insertLineBreak") after removing its container with DOM API after undoing
Asserts run
Pass
assert_equals("<b>will be removed<br></b><i>abc</i>", "<b>will be removed<br></b><i>abc</i>", "<br> element should be inserted into the <b> element by execCommand(\"insertLineBreak\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:63:3)
Pass
assert_equals("<b>will be removed</b><i>abc</i>", "<b>will be removed</b><i>abc</i>", "<br> element should be removed by execCommand(\"undo\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:66:3)
Pass
assert_equals("<i>abc</i>", "<i>abc</i>", "<br> element shouldn't be restored by execCommand(\"redo\") after removing the <b> element")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:70:3)
PassRedo for execCommand("insertLineBreak") after removing <i> element following the container with DOM API after undoing
Asserts run
Pass
assert_equals("<b>abc<br></b><i>will be removed</i>", "<b>abc<br></b><i>will be removed</i>", "<br> element should be inserted into the <b> element by execCommand(\"insertLineBreak\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:78:3)
Pass
assert_equals("<b>abc</b><i>will be removed</i>", "<b>abc</b><i>will be removed</i>", "<br> element should be removed by execCommand(\"undo\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:81:3)
Pass
assert_equals("<b>abc<br></b>", "<b>abc<br></b>", "<br> element should be restored by execCommand(\"redo\") after removing the following <i> element")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:85:3)
FailRedo for execCommand("insertLineBreak") between <b> and <i> after removing preceding <b> element with DOM API after undoingassert_equals: <br> element should be inserted between the <b> and <i> elements by execCommand("insertLineBreak") expected "<b>will be removed</b><br><i>abc</i>" but got "<b>will be removed<br></b><i>abc</i>"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/editing/run/undo-redo-after-mutation.html:94: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/editing/run/undo-redo-after-mutation.html:90:1
Asserts run
Fail
assert_equals("<b>will be removed<br></b><i>abc</i>", "<b>will be removed</b><br><i>abc</i>", "<br> element should be inserted between the <b> and <i> elements by execCommand(\"insertLineBreak\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:94:3)
FailRedo for execCommand("insertLineBreak") between <b> and <i> after after removing following <i> element with DOM API after undoingassert_equals: <br> element should be inserted between the <b> and <i> elements by execCommand("insertLineBreak") expected "<b>abc</b><br><i>will be removed</i>" but got "<b>abc<br></b><i>will be removed</i>"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/editing/run/undo-redo-after-mutation.html:109: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/editing/run/undo-redo-after-mutation.html:105:1
Asserts run
Fail
assert_equals("<b>abc<br></b><i>will be removed</i>", "<b>abc</b><br><i>will be removed</i>", "<br> element should be inserted between the <b> and <i> elements by execCommand(\"insertLineBreak\")")
    at Test.<anonymous> ( /editing/run/undo-redo-after-mutation.html:109:3)