https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 8409a38ef8d57d6fdad447adef206f17d1ecf9fb authored by James Graham on 14 August 2018, 18:17:53 UTC
WIP
Tip revision: 8409a38
TrustedTypePolicyFactory-createPolicy.tentative.html
<!DOCTYPE html>
<script src="/resources/testharness.js" ></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/helper.sub.js"></script>
<body>
<script>
  async_test(t => {
    var policy = window.trustedTypes.createPolicy('SomeName')
        .then(t.step_func_done(policy => {
           assert_true(policy instanceof TrustedTypePolicy);
           assert_equals(policy.name, 'SomeName');
    }));
  }, "policy.name = name");
</script>
back to top