Summary

Harness status: OK

Found 23 tests

Details

ResultTest NameMessage
PassgetAttributeType( "DIV", "onclick", "http://www.w3.org/1999/xhtml", "null") == "TrustedScript"
Asserts run
Pass
assert_equals("TrustedScript", "TrustedScript")
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "g", "ondblclick", "http://www.w3.org/2000/svg", "null") == "TrustedScript"
Asserts run
Pass
assert_equals("TrustedScript", "TrustedScript")
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "mrow", "onmousedown", "http://www.w3.org/1998/Math/MathML", "null") == "TrustedScript"
Asserts run
Pass
assert_equals("TrustedScript", "TrustedScript")
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "IFRAME", "srcdoc", "http://www.w3.org/1999/xhtml", "null") == "TrustedHTML"
Asserts run
Pass
assert_equals("TrustedHTML", "TrustedHTML")
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "SCRIPT", "src", "http://www.w3.org/1999/xhtml", "null") == "TrustedScriptURL"
Asserts run
Pass
assert_equals("TrustedScriptURL", "TrustedScriptURL")
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
FailgetAttributeType( "script", "href", "http://www.w3.org/2000/svg", "null") == "TrustedScriptURL"assert_equals: expected (string) "TrustedScriptURL" but got (object) null
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/trusted-types/TrustedTypePolicyFactory-getAttributeType.html:9:5
    at Array.forEach (<anonymous>)
Asserts run
Fail
assert_equals(null, "TrustedScriptURL")
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
FailgetAttributeType( "script", "href", "http://www.w3.org/2000/svg", "http://www.w3.org/1999/xlink") == "TrustedScriptURL"assert_equals: expected (string) "TrustedScriptURL" but got (object) null
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/trusted-types/TrustedTypePolicyFactory-getAttributeType.html:9:5
    at Array.forEach (<anonymous>)
Asserts run
Fail
assert_equals(null, "TrustedScriptURL")
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
FailgetAttributeType( "foo", "onmouseup", "https://example.com/namespace", "null") == "null"assert_equals: expected (object) null but got (string) "TrustedScript"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/trusted-types/TrustedTypePolicyFactory-getAttributeType.html:9:5
    at Array.forEach (<anonymous>)
Asserts run
Fail
assert_equals("TrustedScript", null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "DIV", "onclick", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "DIV", "ondoesnotexist", "http://www.w3.org/1999/xhtml", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "DIV", "data-onclick", "http://www.w3.org/1999/xhtml", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "DIV", "srcdoc", "http://www.w3.org/1999/xhtml", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "iframe", "srcdoc", "https://example.com/namespace", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "IFRAME", "srcdoc", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "IFRAME", "data-srcdoc", "http://www.w3.org/1999/xhtml", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "DIV", "src", "http://www.w3.org/1999/xhtml", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "script", "src", "https://example.com/namespace", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "SCRIPT", "src", "http://www.w3.org/1999/xhtml", "https://example.com/namespace") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "SCRIPT", "data-src", "http://www.w3.org/1999/xhtml", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "g", "href", "http://www.w3.org/2000/svg", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "SCRIPT", "href", "http://www.w3.org/1999/xhtml", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "script", "href", "http://www.w3.org/2000/svg", "https://example.com/namespace") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)
PassgetAttributeType( "script", "src", "http://www.w3.org/2000/svg", "null") == "null"
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /trusted-types/TrustedTypePolicyFactory-getAttributeType.html:15:7)