Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 4 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /digital-credentials/user-agent-allows-protocol.https.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8" />
<title>
Digital Credentials: User agent allows the required presentation protocols
</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body></body>
<script type="module">
const REQUIRED_PRESENTATION_PROTOCOLS = [
"org-iso-mdoc",
"openid4vp-v1-signed",
"openid4vp-v1-multisigned",
"openid4vp-v1-unsigned",
];
for (const protocol of REQUIRED_PRESENTATION_PROTOCOLS) {
test(() => {
assert_true(
DigitalCredential.userAgentAllowsProtocol(protocol),
`User agent must support the "${protocol}" presentation protocol`,
);
}, `Presentation protocol support: ${protocol}`);
}
</script>