idlharness.https.window.js (880B)
1 // META: script=/resources/WebIDLParser.js 2 // META: script=/resources/idlharness.js 3 // META: timeout=long 4 5 // https://w3c.github.io/webappsec-credential-management/ 6 7 'use strict'; 8 9 idl_test( 10 ['credential-management'], 11 ['html', 'dom'], 12 idl_array => { 13 idl_array.add_objects({ 14 CredentialsContainer: ['navigator.credentials'], 15 PasswordCredential: ['passwordCredential'], 16 FederatedCredential: ['federatedCredential'], 17 }); 18 19 try { 20 self.passwordCredential = new PasswordCredential({ 21 id: "id", 22 password: "pencil", 23 iconURL: "https://example.com/", 24 name: "name" 25 }); 26 } catch (e) {} 27 28 try { 29 self.federatedCredential = new FederatedCredential({ 30 id: "id", 31 provider: "https://example.com", 32 iconURL: "https://example.com/", 33 name: "name" 34 }); 35 } catch (e) {} 36 } 37 )