Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PassNo violation reported for setTimeout with TrustedScript.
Asserts run
Pass
assert_equals(0, 0, "no violation reported")
    at no_trusted_type_violation_for ( /trusted-types/support/csp-violations.js:67:3)
Pass
assert_equals(null, null, "no exception thrown")
    at no_trusted_type_violation_for ( /trusted-types/support/csp-violations.js:68:3)
PassNo violation reported for setInterval with TrustedScript.
Asserts run
Pass
assert_equals(0, 0, "no violation reported")
    at no_trusted_type_violation_for ( /trusted-types/support/csp-violations.js:67:3)
Pass
assert_equals(null, null, "no exception thrown")
    at no_trusted_type_violation_for ( /trusted-types/support/csp-violations.js:68:3)
PassViolation report for setTimeout with plain string.
Asserts run
Pass
assert_equals(1, 1, "a single violation reported")
    at trusted_type_violation_for ( /trusted-types/support/csp-violations.js:58:3)
Pass
assert_true(true, "TypeError exception reported")
    at trusted_type_violation_for ( /trusted-types/support/csp-violations.js:59:3)
Pass
assert_equals("trusted-types-sink", "trusted-types-sink")
    at Test.<anonymous> ( /trusted-types/support/trusted-types-reporting-for-DOMWindowTimers-setTimeout-setInterval.js:25:3)
Pass
assert_equals(null, null)
    at clipSampleIfNeeded ( /trusted-types/support/csp-violations.js:85:3)
Pass
assert_equals("Window setTimeout|;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;", "Window setTimeout|;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;")
    at Test.<anonymous> ( /trusted-types/support/trusted-types-reporting-for-DOMWindowTimers-setTimeout-setInterval.js:26:3)
PassViolation report for setInterval with plain string.
Asserts run
Pass
assert_equals(1, 1, "a single violation reported")
    at trusted_type_violation_for ( /trusted-types/support/csp-violations.js:58:3)
Pass
assert_true(true, "TypeError exception reported")
    at trusted_type_violation_for ( /trusted-types/support/csp-violations.js:59:3)
Pass
assert_equals("trusted-types-sink", "trusted-types-sink")
    at Test.<anonymous> ( /trusted-types/support/trusted-types-reporting-for-DOMWindowTimers-setTimeout-setInterval.js:33:3)
Pass
assert_equals(null, null)
    at clipSampleIfNeeded ( /trusted-types/support/csp-violations.js:85:3)
Pass
assert_equals("Window setInterval|;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;", "Window setInterval|;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;")
    at Test.<anonymous> ( /trusted-types/support/trusted-types-reporting-for-DOMWindowTimers-setTimeout-setInterval.js:34:3)