summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html
blob: 293444820216e17adb8c4f02a1615d7dfbfe2e6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!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>