2018-07-07 02:19:52 +03:00
|
|
|
// META: script=/resources/WebIDLParser.js
|
|
|
|
// META: script=/resources/idlharness.js
|
2020-06-10 14:33:37 +03:00
|
|
|
// META: timeout=long
|
2018-07-07 02:19:52 +03:00
|
|
|
|
|
|
|
// https://w3c.github.io/webappsec-credential-management/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2019-08-01 17:23:59 +03:00
|
|
|
idl_test(
|
|
|
|
['credential-management'],
|
|
|
|
['html', 'dom'],
|
|
|
|
idl_array => {
|
|
|
|
idl_array.add_objects({
|
|
|
|
CredentialsContainer: ['navigator.credentials'],
|
|
|
|
PasswordCredential: ['passwordCredential'],
|
|
|
|
FederatedCredential: ['federatedCredential'],
|
|
|
|
});
|
2018-07-07 02:19:52 +03:00
|
|
|
|
2019-08-01 17:23:59 +03:00
|
|
|
try {
|
|
|
|
self.passwordCredential = new PasswordCredential({
|
2018-07-07 02:19:52 +03:00
|
|
|
id: "id",
|
|
|
|
password: "pencil",
|
|
|
|
iconURL: "https://example.com/",
|
|
|
|
name: "name"
|
2019-08-01 17:23:59 +03:00
|
|
|
});
|
|
|
|
} catch (e) {}
|
|
|
|
|
|
|
|
try {
|
|
|
|
self.federatedCredential = new FederatedCredential({
|
2018-07-07 02:19:52 +03:00
|
|
|
id: "id",
|
|
|
|
provider: "https://example.com",
|
|
|
|
iconURL: "https://example.com/",
|
|
|
|
name: "name"
|
2019-08-01 17:23:59 +03:00
|
|
|
});
|
|
|
|
} catch (e) {}
|
|
|
|
}
|
|
|
|
)
|