AC

Summary

Harness status: OK

Found 20 tests

Details

ResultTest NameMessage
PassexecCommand("insertHTML", false, "plaintext") when ""
Asserts run
Pass
assert_equals("plaintext", "plaintext")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
FailexecCommand("insertHTML", false, "1st line 2nd line") when ""assert_equals: expected "1st line 2nd line" but got "1st line\n2nd line"
    at Test.<anonymous> (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:152:9)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at addEventListener.once (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:146:5)
Asserts run
Fail
assert_equals("1st line\n2nd line", "1st line 2nd line")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<pre>1st line 2nd line</pre>") when ""
Asserts run
Pass
assert_equals("1st line\n2nd line", "1st line\n2nd line")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
FailexecCommand("insertHTML", false, "plaintext") when "<b>{}</b>"assert_equals: expected "<b>plaintext</b>" but got "<b></b>"
    at Test.<anonymous> (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:152:9)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at addEventListener.once (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:146:5)
Asserts run
Fail
assert_equals("<b></b>", "<b>plaintext</b>")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
FailexecCommand("insertHTML", false, "plaintext") when "<b>{}<br></b>"assert_in_array: value "plaintext<b></b>" not in array ["<b>plaintext</b>", "<b>plaintext<br></b>"]
    at Test.<anonymous> (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:150:9)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at addEventListener.once (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:146:5)
Asserts run
Fail
assert_in_array("plaintext<b></b>", ["<b>plaintext</b>", "<b>plaintext<br></b>"])
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:150:9)
FailexecCommand("insertHTML", false, "plaintext") when "<b>A[]B</b>"assert_equals: expected "<b>AplaintextB</b>" but got "<b>A</b>plaintext<b>B</b>"
    at Test.<anonymous> (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:152:9)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at addEventListener.once (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:146:5)
Asserts run
Fail
assert_equals("<b>A</b>plaintext<b>B</b>", "<b>AplaintextB</b>")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
FailexecCommand("insertHTML", false, "plaintext") when "<span>A[]B</span>"assert_equals: expected "<span>AplaintextB</span>" but got "<span>A</span>plaintext<span>B</span>"
    at Test.<anonymous> (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:152:9)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at addEventListener.once (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:146:5)
Asserts run
Fail
assert_equals("<span>A</span>plaintext<span>B</span>", "<span>AplaintextB</span>")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<div>abc</div>") when ""
Asserts run
Pass
assert_equals("abc", "abc")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<div>abc<br>def</div>") when ""
Asserts run
Pass
assert_equals("abc\ndef", "abc\ndef")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<div>abc</div><div>def</div>") when ""
Asserts run
Pass
assert_equals("abc\ndef", "abc\ndef")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<div>abc<br>def</div><div>ghi<br>jkl</div>") when ""
Asserts run
Pass
assert_equals("abc\ndef\nghi\njkl", "abc\ndef\nghi\njkl")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<noscript>no script</noscript>") when ""
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<noframes>no frames</noframes>") when ""
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<script>script</script>") when ""
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<style>style</style>") when ""
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<html><head><title>title</title></head><body>body</body></html>") when ""
Asserts run
Pass
assert_equals("body", "body")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
FailexecCommand("insertHTML", false, "plain text") when ""assert_equals: expected "plain text" but got "plain text"
    at Test.<anonymous> (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:152:9)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at addEventListener.once (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:146:5)
Asserts run
Fail
assert_equals("plain  text", "plain text")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
FailexecCommand("insertHTML", false, "<span>plain text</span>") when ""assert_equals: expected "plain text" but got "plain text"
    at Test.<anonymous> (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:152:9)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
    at test (https://www1.wpt.live/resources/testharness.js:633:30)
    at addEventListener.once (https://www1.wpt.live/editing/plaintext-only/insertHTML.html:146:5)
Asserts run
Fail
assert_equals("plain  text", "plain text")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "<pre>plain text</pre>") when ""
Asserts run
Pass
assert_equals("plain  text", "plain  text")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)
PassexecCommand("insertHTML", false, "") when "A[B]C"
Asserts run
Pass
assert_equals("AC", "AC")
    at Test.<anonymous> ( /editing/plaintext-only/insertHTML.html:152:9)