Commit b16db925 authored by Daniel Vogelheim's avatar Daniel Vogelheim Committed by Commit Bot

[Trusted Types] Add test for duplicate names in non-enforcing mode.

Bug: 1020589
Change-Id: Ieefc31f5a16f9d374577cd498a493d86ba95d4f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1913256Reviewed-by: default avatarMike West <mkwst@chromium.org>
Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714967}
parent 1e0fe971
<!DOCTYPE html>
<script src="/resources/testharness.js" ></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
// This test tests error handling of duplicate policy creation when no
// Trusted Types enforcement is active.
test(t => {
trustedTypes.createPolicy('foo', {} );
trustedTypes.createPolicy('foo', {} );
}, "Duplicate policy names should be tolerated (unless in enforcing mode)");
</script>
</body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment