Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit cdb791c

Browse files
Sam Gotomoz-wptsync-bot
authored andcommitted
Bug 1728907 [wpt PR 30317] - [webid] Add the API surface for the WebID revocation API, a=testonly
Automatic update from web-platform-tests [webid] Add the API surface for the WebID revocation API Use case: https://wicg.github.io/WebID/#rp-revocation Example: https://wicg.github.io/WebID/#examples-rp-revocation Spec: https://wicg.github.io/WebID/#FederatedCredential Change-Id: Ifa37cef08c01b7424bb757a470691c2e84930764 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3135033 Commit-Queue: Mike West <[email protected]> Auto-Submit: Sam Goto <[email protected]> Reviewed-by: Mike West <[email protected]> Reviewed-by: Ken Buchanan <[email protected]> Cr-Commit-Position: refs/heads/main@{#918722} -- wpt-commits: 468d01bbd84da2babf265c6af46947be68713440 wpt-pr: 30317
1 parent e867060 commit cdb791c

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

testing/web-platform/tests/credential-management/webid.https.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@
44
<script src="/resources/testharnessreport.js"></script>
55
<script>
66
promise_test(function(t) {
7-
// Expects the credential manager to throw a NotSupportedError while
8-
// attemping to use the WebID when it is not yet enabled.
7+
// Throws a not implemented error.
98
return promise_rejects_dom(t, "NotSupportedError",
10-
navigator.credentials.get({
9+
navigator.credentials.get({
1110
federated: {
1211
providers: [{
13-
provider: "bar"
12+
provider: "https://accounts.idp.example",
13+
clientId: "1234",
14+
nonce: "5678",
1415
}]
1516
}
16-
}));
17-
}, "navigator.credentials.get() with invalid providers.");
17+
})
18+
);
19+
}, "navigator.credentials.get() with a FederatedIdentityProvider.");
20+
21+
promise_test(function(t) {
22+
// Revocation API not supported yet.
23+
return promise_rejects_dom(t, "NotSupportedError",
24+
FederatedCredential.revoke("1234")
25+
);
26+
}, "navigator.credentials.revoke() basic.");
27+
1828
</script>

0 commit comments

Comments
 (0)