diff options
Diffstat (limited to 'testing/web-platform/tests/trusted-types/TrustedTypePolicy-CSP-wildcard.html')
-rw-r--r-- | testing/web-platform/tests/trusted-types/TrustedTypePolicy-CSP-wildcard.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/trusted-types/TrustedTypePolicy-CSP-wildcard.html b/testing/web-platform/tests/trusted-types/TrustedTypePolicy-CSP-wildcard.html new file mode 100644 index 0000000000..cdc683dad3 --- /dev/null +++ b/testing/web-platform/tests/trusted-types/TrustedTypePolicy-CSP-wildcard.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<script src="/resources/testharness.js" ></script> +<script src="/resources/testharnessreport.js"></script> +<script src="support/helper.sub.js"></script> + +<body> +<script> + test(t => { + let policy = window.trustedTypes.createPolicy('SomeName', { createHTML: s => s } ); + assert_equals(policy.name, 'SomeName'); + }, "CSP supports wildcards."); +</script> |