Summary

Harness status: OK

Found 65 tests

Details

ResultTest NameMessage
PassFunction constructor with mixed plain and trusted strings, mask #0
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #0
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #0
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #0
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #1
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #1
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #1
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #1
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #2
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #2
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #2
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #2
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #3
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #3
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #3
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #3
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #4
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #4
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #4
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #4
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #5
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #5
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #5
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #5
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #6
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #6
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #6
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #6
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #7
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #7
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #7
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #7
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #8
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #8
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #8
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #8
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #9
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #9
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #9
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #9
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #10
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #10
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #10
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #10
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #11
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #11
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #11
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #11
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #12
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #12
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #12
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #12
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #13
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #13
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #13
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #13
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
PassFunction constructor with mixed plain and trusted strings, mask #14
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "Function")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:47:7)
PassAsyncFunction constructor with mixed plain and trusted strings, mask #14
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:51:7)
PassGeneratorFunction constructor with mixed plain and trusted strings, mask #14
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "GeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:55:7)
PassAsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #14
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new_function_with_maybe_trusted_args(mask, "AsyncGeneratorFunction")")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:59:7)
FailFunction constructor with mixed plain and trusted strings, mask #15Refused to evaluate a string as JavaScript because this document requires 'Trusted Type' assignment.
EvalError: Refused to evaluate a string as JavaScript because this document requires 'Trusted Type' assignment.
    at new Function (<anonymous>)
    at new_function_with_maybe_trusted_args (https://not-wpt.live/trusted-types/eval-function-constructor.html:31:16)
    at Test.<anonymous> (https://not-wpt.live/trusted-types/eval-function-constructor.html:68:15)
    at Test.step (https://not-wpt.live/resources/testharness.js:2642:25)
    at test (https://not-wpt.live/resources/testharness.js:633:30)
    at https://not-wpt.live/trusted-types/eval-function-constructor.html:67:3
Asserts runNo asserts ran
PassFunction constructor with trusted strings, and a forged toString() for the one at index 0
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new Function(...mixed_args)")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:84:7)
PassFunction constructor with trusted strings, and a forged toString() for the one at index 1
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new Function(...mixed_args)")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:84:7)
PassFunction constructor with trusted strings, and a forged toString() for the one at index 2
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new Function(...mixed_args)")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:84:7)
PassFunction constructor with trusted strings, and a forged toString() for the one at index 3
Asserts run
Pass
assert_throws_js(function "function EvalError() { [native code] }", function "_ => new Function(...mixed_args)")
    at Test.<anonymous> ( /trusted-types/eval-function-constructor.html:84:7)