blob: 293444820216e17adb8c4f02a1615d7dfbfe2e6e [file] [log] [blame]
<!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>