Summary

Harness status: OK

Found 45 tests

Details

ResultTest NameMessage
FailTrustedHTML.fromLiteral is supportedassert_true: expected true got false
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:14:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:13:3
    at Array.forEach (<anonymous>)
Asserts run
Fail
assert_true(false)
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:14:5)
FailTrustedHTML.fromLiteral: Basic string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:18:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:17:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedHTML.fromLiteral: Empty string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:24:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:23:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedHTML.fromLiteral: A very important emoji works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:30:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:29:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedHTML.fromLiteral: Multi-line string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:36:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:35:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedHTML.fromLiteral: Bound method works.Cannot read properties of undefined (reading 'bind')
TypeError: Cannot read properties of undefined (reading 'bind')
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:44:34)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:43:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
PassTrustedHTML.fromLiteral: String throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral("abc");     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:51:5)
PassTrustedHTML.fromLiteral: null throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(null);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:57:5)
PassTrustedHTML.fromLiteral: undefined throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(undefined);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:63:5)
PassTrustedHTML.fromLiteral: Object throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral({});     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:69:5)
PassTrustedHTML.fromLiteral: template literal with expression throws.
Asserts run
Pass
assert_throws_js
PassTrustedHTML.fromLiteral: non-literal throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(["abc"]);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:81:5)
PassTrustedHTML.fromLiteral: frozen non-literal throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(Object.freeze(["abc"]));     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:87:5)
PassTrustedHTML.fromLiteral: non-literal with param throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(["abc", "def"], "xxx");     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:93:5)
FailTrustedScript.fromLiteral is supportedassert_true: expected true got false
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:14:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:13:3
    at Array.forEach (<anonymous>)
Asserts run
Fail
assert_true(false)
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:14:5)
FailTrustedScript.fromLiteral: Basic string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:18:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:17:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedScript.fromLiteral: Empty string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:24:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:23:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedScript.fromLiteral: A very important emoji works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:30:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:29:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedScript.fromLiteral: Multi-line string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:36:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:35:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedScript.fromLiteral: Bound method works.Cannot read properties of undefined (reading 'bind')
TypeError: Cannot read properties of undefined (reading 'bind')
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:44:34)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:43:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
PassTrustedScript.fromLiteral: String throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral("abc");     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:51:5)
PassTrustedScript.fromLiteral: null throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(null);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:57:5)
PassTrustedScript.fromLiteral: undefined throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(undefined);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:63:5)
PassTrustedScript.fromLiteral: Object throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral({});     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:69:5)
PassTrustedScript.fromLiteral: template literal with expression throws.
Asserts run
Pass
assert_throws_js
PassTrustedScript.fromLiteral: non-literal throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(["abc"]);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:81:5)
PassTrustedScript.fromLiteral: frozen non-literal throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(Object.freeze(["abc"]));     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:87:5)
PassTrustedScript.fromLiteral: non-literal with param throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(["abc", "def"], "xxx");     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:93:5)
FailTrustedScriptURL.fromLiteral is supportedassert_true: expected true got false
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:14:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:13:3
    at Array.forEach (<anonymous>)
Asserts run
Fail
assert_true(false)
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:14:5)
FailTrustedScriptURL.fromLiteral: Basic string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:18:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:17:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedScriptURL.fromLiteral: Empty string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:24:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:23:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedScriptURL.fromLiteral: A very important emoji works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:30:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:29:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedScriptURL.fromLiteral: Multi-line string literal works.type.fromLiteral is not a function
TypeError: type.fromLiteral is not a function
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:36:31)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:35:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
FailTrustedScriptURL.fromLiteral: Bound method works.Cannot read properties of undefined (reading 'bind')
TypeError: Cannot read properties of undefined (reading 'bind')
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:44:34)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:43:3
    at Array.forEach (<anonymous>)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:11:50
Asserts runNo asserts ran
PassTrustedScriptURL.fromLiteral: String throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral("abc");     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:51:5)
PassTrustedScriptURL.fromLiteral: null throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(null);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:57:5)
PassTrustedScriptURL.fromLiteral: undefined throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(undefined);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:63:5)
PassTrustedScriptURL.fromLiteral: Object throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral({});     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:69:5)
PassTrustedScriptURL.fromLiteral: template literal with expression throws.
Asserts run
Pass
assert_throws_js
PassTrustedScriptURL.fromLiteral: non-literal throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(["abc"]);     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:81:5)
PassTrustedScriptURL.fromLiteral: frozen non-literal throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(Object.freeze(["abc"]));     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:87:5)
PassTrustedScriptURL.fromLiteral: non-literal with param throws.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "_ => {       type.fromLiteral(["abc", "def"], "xxx");     }")
    at Test.<anonymous> ( /trusted-types/trusted-types-from-literal.tentative.html:93:5)
FailTrustedHTML.fromLiteral: Normalization of value works.Cannot read properties of undefined (reading 'bind')
TypeError: Cannot read properties of undefined (reading 'bind')
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:103:39)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:102:1
Asserts runNo asserts ran
FailTrustedScript.fromLiteral: No normalization of value occurs.Cannot read properties of undefined (reading 'bind')
TypeError: Cannot read properties of undefined (reading 'bind')
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:108:41)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:107:1
Asserts runNo asserts ran
FailTrustedScriptURL.fromLiteral: No normalization of value occurs.Cannot read properties of undefined (reading 'bind')
TypeError: Cannot read properties of undefined (reading 'bind')
    at Test.<anonymous> (https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:113:44)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at test (https://wpt.live/resources/testharness.js:633:30)
    at https://wpt.live/trusted-types/trusted-types-from-literal.tentative.html:112:1
Asserts runNo asserts ran