File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 4
4
< script src ="/resources/testharnessreport.js "> </ script >
5
5
< script >
6
6
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.
9
8
return promise_rejects_dom ( t , "NotSupportedError" ,
10
- navigator . credentials . get ( {
9
+ navigator . credentials . get ( {
11
10
federated : {
12
11
providers : [ {
13
- provider : "bar"
12
+ provider : "https://accounts.idp.example" ,
13
+ clientId : "1234" ,
14
+ nonce : "5678" ,
14
15
} ]
15
16
}
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
+
18
28
</ script >
You can’t perform that action at this time.
0 commit comments