Summary

Harness status: OK

Found 5 tests

Details

ResultTest NameMessage
PassDocument.parseHTMLUnsafe assigned via policy (successful HTML transformation).
Asserts run
Pass
assert_equals("Quack, I want to be a duck!", "Quack, I want to be a duck!")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html:19:5)
Pass`Document.parseHTMLUnsafe(string)` throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       var doc = Document.parseHTMLUnsafe("Fail");     }")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html:24:5)
Pass'Document.parseHTMLUnsafe(null)' throws
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       var doc = Document.parseHTMLUnsafe(null);     }")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html:31:5)
Pass'Document.parseHTMLUnsafe(string)' assigned via default policy (successful HTML transformation).
Asserts run
Pass
assert_equals("Document parseHTMLUnsafe", "Document parseHTMLUnsafe")
    at createHTML ( /trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html:40:9)
Pass
assert_equals("Quack, I want to be a duck!", "Quack, I want to be a duck!")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html:45:5)
Pass'Document.parseHTMLUnsafe(null)' assigned via default policy does not throw
Asserts run
Pass
assert_equals("Document parseHTMLUnsafe", "Document parseHTMLUnsafe")
    at createHTML ( /trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html:40:9)
Pass
assert_equals("null", "null")
    at Test.<anonymous> ( /trusted-types/block-string-assignment-to-Document-parseHTMLUnsafe.html:51:5)