diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-write.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-write.html index 0b16a9c49100..c774dca43909 100644 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-write.html +++ b/testing/web-platform/tests/trusted-types/block-string-assignment-to-Document-write.html @@ -124,6 +124,9 @@ assert_equals(sink, "Document write"); } else if (html === "assertSinkEqualsDocumentWriteLn") { assert_equals(sink, "Document writeln"); + } else if (html === "assertSinkEqualsDocumentWriteLn\n") { + // Ensure that new line characters aren't incorrectly added prior to processing + assert_unreached(`Should not process any other HTML, but got "${html}"`); } return html.replace("Hi", "Quack")