diff --git a/digital-credentials/allow-attribute.https.html b/digital-credentials/allow-attribute.https.html index 2cba67ed22e3da3..a42a3b68f0e888b 100644 --- a/digital-credentials/allow-attribute.https.html +++ b/digital-credentials/allow-attribute.https.html @@ -14,66 +14,66 @@ { policy: null, crossOrigin: false, - isAllowed: true, + expectIsAllowed: true, }, { policy: null, crossOrigin: true, - isAllowed: false, + expectIsAllowed: false, }, { policy: "digital-credentials-get", crossOrigin: false, - isAllowed: true, + expectIsAllowed: true, }, { policy: "digital-credentials-get", crossOrigin: true, - isAllowed: true, - }, - { - policy: "digital-credentials-get *", - crossOrigin: true, - isAllowed: true, + expectIsAllowed: true, }, { policy: "digital-credentials-get *", crossOrigin: false, - isAllowed: true, + expectIsAllowed: true, }, { - policy: "digital-credentials-get 'none'", + policy: "digital-credentials-get *", crossOrigin: true, - isAllowed: false, + expectIsAllowed: true, }, { policy: "digital-credentials-get 'none'", crossOrigin: false, - isAllowed: false, + expectIsAllowed: false, }, { - policy: "digital-credentials-get 'self'", + policy: "digital-credentials-get 'none'", crossOrigin: true, - isAllowed: false, + expectIsAllowed: false, }, { policy: "digital-credentials-get 'self'", crossOrigin: false, - isAllowed: true, + expectIsAllowed: true, }, { - policy: `digital-credentials-get ${hostInfo.HTTPS_REMOTE_ORIGIN}`, + policy: "digital-credentials-get 'self'", crossOrigin: true, - isAllowed: true, + expectIsAllowed: false, }, { policy: `digital-credentials-get ${hostInfo.HTTPS_REMOTE_ORIGIN}`, crossOrigin: false, - isAllowed: false, + expectIsAllowed: false, + }, + { + policy: `digital-credentials-get ${hostInfo.HTTPS_REMOTE_ORIGIN}`, + crossOrigin: true, + expectIsAllowed: true, }, ]; - async function loadIframe({ policy, crossOrigin, isAllowed }) { + async function loadIframe({ policy, crossOrigin, expectIsAllowed }) { const iframe = document.createElement("iframe"); if (policy !== null) { iframe.allow = policy; @@ -87,7 +87,7 @@ ? hostInfo.HTTPS_REMOTE_ORIGIN : location.origin ).href; - iframe.dataset.isAllowed = isAllowed; + iframe.dataset.expectIsAllowed = expectIsAllowed; document.body.appendChild(iframe); }); iframe.focus(); @@ -98,7 +98,7 @@ for (const details of iframeDetails) { promise_test(async (test) => { const iframe = await loadIframe(details); - const { isAllowed } = details; + const { expectIsAllowed } = details; const action = "get"; const options = { digital: { @@ -115,14 +115,14 @@ "*" ); }); - const { name, messsage } = data; + const { name, message } = data; assert_equals( name, - isAllowed ? "TypeError" : "NotAllowedError", - `${iframe.outerHTML} - ${messsage}` + expectIsAllowed ? "TypeError" : "NotAllowedError", + `${iframe.outerHTML} - ${message}` ); iframe.remove(); - }, `Policy to use: ${details.policy}, is cross-origin: ${details.crossOrigin}, is allowed by policy: ${details.isAllowed}`); + }, `Policy to use: ${details.policy}, is cross-origin: ${details.crossOrigin}, is allowed by policy: ${details.expectIsAllowed}`); } } diff --git a/digital-credentials/default-permissions-policy.https.sub.html b/digital-credentials/default-permissions-policy.https.sub.html index 34a40bdcfe746af..fa3309ac2b40328 100644 --- a/digital-credentials/default-permissions-policy.https.sub.html +++ b/digital-credentials/default-permissions-policy.https.sub.html @@ -15,7 +15,7 @@ const cross_origin_src = new URL(same_origin_src, HTTPS_REMOTE_ORIGIN).href; promise_test(async (test) => { - await test_driver.bless("use activation"); + await test_driver.bless("user activation"); await promise_rejects_js( test, TypeError, diff --git a/digital-credentials/get-user-activation.https.html b/digital-credentials/get-user-activation.https.html deleted file mode 100644 index 8951078c0567135..000000000000000 --- a/digital-credentials/get-user-activation.https.html +++ /dev/null @@ -1,37 +0,0 @@ - -