Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
Pass`document.write(string)` throws TypeError
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       document.write('A string');     }")
    at Test.<anonymous> ( /trusted-types/Document-write-exception-order.xhtml:15:5)
Pass
assert_equals("", "")
    at Test.<anonymous> ( /trusted-types/Document-write-exception-order.xhtml:18:5)
Pass`document.write(TrustedHTML)` throws InvalidStateError
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "_ => {       document.write(p.createHTML('A string'));     }")
    at Test.<anonymous> ( /trusted-types/Document-write-exception-order.xhtml:24:5)
Pass
assert_equals("", "")
    at Test.<anonymous> ( /trusted-types/Document-write-exception-order.xhtml:27:5)
Pass`document.write(string)` w/ default policy throws InvalidStateError
Asserts run
Pass
assert_throws_dom("InvalidStateError", function "_ => {       document.write('A string');     }")
    at Test.<anonymous> ( /trusted-types/Document-write-exception-order.xhtml:35:5)
Pass
assert_equals("", "")
    at Test.<anonymous> ( /trusted-types/Document-write-exception-order.xhtml:38:5)