Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
PassNo violation reported for Worker constructor with TrustedScriptURL.
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 Worker constructor 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-DedicatedWorker-constructor.js:14:3)
Pass
assert_equals(null, null)
    at clipSampleIfNeeded ( /trusted-types/support/csp-violations.js:85:3)
Pass
assert_equals("Worker constructor|data:text/javascript,;;;;;;;;;;;;;;;;;;;", "Worker constructor|data:text/javascript,;;;;;;;;;;;;;;;;;;;")
    at Test.<anonymous> ( /trusted-types/support/trusted-types-reporting-for-DedicatedWorker-constructor.js:15:3)