This is a testharness.js-based test.
[FAIL] Inserting text when selection is collapsed in which follows a text node and an empty element
assert_in_array: The text should be inserted at end of the first text node before empty and value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a non-empty element
assert_in_array: The text should be inserted at end of the text node in value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a text node, an empty element and white-space only text node
assert_in_array: The text should be inserted at end of the first text node with ignoring the empty and invisible text node before value "abc def
" not in array ["abcdef
", "abcdef
", "abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which is only child
assert_in_array: The text should be inserted before the element value "
" not in array ["abc
", "abc
"]
[FAIL] Inserting text when selection is collapsed in which is only child (explicitly flushes maybe pending layout)
assert_in_array: The text should be inserted before the element value "
" not in array ["abc
", "abc
"]
[FAIL] Inserting text when selection is collapsed in which follows an empty element
assert_in_array: The text should be inserted before the previous empty inline element of value "
" not in array ["abc
", "abc
"]
[FAIL] Inserting text when selection is collapsed in which follows a text node and an empty element
assert_in_array: The text should be inserted before the previous empty inline element of value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a non-empty element
assert_in_array: The text should be inserted at end of the text node in before value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a text node, an empty element and white-space only text node
assert_in_array: The text should be inserted before the previous empty inline element value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a text node, an empty element and white-space only text node
assert_in_array: The text should be inserted after the previous empty inline element value "abc \\ndef
" not in array ["abc def
", "abc def
"]
[FAIL] Inserting text when selection is collapsed in which follows an empty element
assert_in_array: The text should be inserted before the previous empty inline element of value "abc
" not in array ["abc
", "abc
"]
[FAIL] Inserting text when selection is collapsed in which follows a text node and an empty element
assert_in_array: The text should be inserted before the previous empty inline element of value "abc
def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a non-empty element
assert_in_array: The text should be inserted at end of the text node in before value "abc def
" not in array ["abcdef ", "abcdef "]
[FAIL] Inserting text when selection is collapsed in which follows a text node and an empty element
assert_in_array: The text should be inserted before the previous empty inline element of value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a non-empty element
assert_in_array: The text should be inserted at end of the text node in before value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows an empty element
assert_in_array: The text should be inserted before the previous empty inline element of value " abc
" not in array ["abc
", "abc
"]
[FAIL] Inserting text when selection is collapsed in which follows a text node and an empty element
assert_in_array: The text should be inserted before the previous empty inline element of value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a non-empty element
assert_in_array: The text should be inserted at end of the text node in before value "abc def
" not in array ["abcdef
", "abcdef
"]
[FAIL] Inserting text when selection is collapsed in which follows a text node, an empty element and white-space only text node
assert_in_array: The text should be inserted before the previous empty inline element value "abc def
" not in array ["abcdef
", "abcdef
"]
Harness: the test ran to completion.