Source code

Revision control

Other Tools

Test Info:

  • This test was skipped 110 times in the preceding 7 days.
<!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>