| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src=../resources/testharness.js></script> | 2 <script src=../resources/testharness.js></script> |
| 3 <script src=../resources/testharnessreport.js></script> | 3 <script src=../resources/testharnessreport.js></script> |
| 4 <script src=../resources/WebIDLParser.js></script> | 4 <script src=../resources/WebIDLParser.js></script> |
| 5 <script src=../resources/idlharness.js></script> | 5 <script src=../resources/idlharness.js></script> |
| 6 <script type="text/plain" id="tested"> | 6 <script type="text/plain" id="tested"> |
| 7 [SecureContext] | 7 [SecureContext] |
| 8 interface ScopedCredentialInfo { | 8 interface ScopedCredentialInfo { |
| 9 readonly attribute ArrayBuffer clientData; | 9 readonly attribute ArrayBuffer clientData; |
| 10 readonly attribute ArrayBuffer attestation; | 10 readonly attribute ArrayBuffer attestation; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 [SecureContext] | 63 [SecureContext] |
| 64 interface ScopedCredential { | 64 interface ScopedCredential { |
| 65 readonly attribute ScopedCredentialType type; | 65 readonly attribute ScopedCredentialType type; |
| 66 readonly attribute ArrayBuffer id; | 66 readonly attribute ArrayBuffer id; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 dictionary ScopedCredentialDescriptor { | 69 dictionary ScopedCredentialDescriptor { |
| 70 required ScopedCredentialType type; | 70 required ScopedCredentialType type; |
| 71 required BufferSource id; | 71 required BufferSource id; |
| 72 sequence < Transport > transports; | 72 sequence <Transport> transports; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 enum Transport { | 75 enum Transport { |
| 76 "usb", | 76 "usb", |
| 77 "nfc", | 77 "nfc", |
| 78 "ble" | 78 "ble" |
| 79 }; | 79 }; |
| 80 [SecureContext] | 80 [SecureContext] |
| 81 interface WebAuthentication { | 81 interface WebAuthentication { |
| 82 Promise < ScopedCredentialInfo > makeCredential ( | 82 Promise <ScopedCredentialInfo> makeCredential ( |
| 83 Account accountInformation, | 83 Account accountInformation, |
| 84 sequence < ScopedCredentialParameters > cryptoParameters, | 84 sequence < ScopedCredentialParameters > cryptoParameters, |
| 85 BufferSource attestationChallenge, | 85 BufferSource attestationChallenge, |
| 86 optional ScopedCredentialOptions options | 86 optional ScopedCredentialOptions options |
| 87 ); | 87 ); |
| 88 | 88 |
| 89 Promise < AuthenticationAssertion > getAssertion ( | 89 Promise <AuthenticationAssertion> getAssertion ( |
| 90 BufferSource assertionChallenge, | 90 BufferSource assertionChallenge, |
| 91 optional AssertionOptions options | 91 optional AssertionOptions options |
| 92 ); | 92 ); |
| 93 }; | 93 }; |
| 94 </script> | 94 </script> |
| 95 <script> | 95 <script> |
| 96 (function() { | 96 (function() { |
| 97 "use strict"; | 97 "use strict"; |
| 98 var idl_array = new IdlArray(); | 98 var idl_array = new IdlArray(); |
| 99 idl_array.add_idls(document.querySelector('#tested').textContent); | 99 idl_array.add_idls(document.querySelector('#tested').textContent); |
| 100 idl_array.add_objects({ | 100 idl_array.add_objects({ |
| 101 WebAuthentication: ['navigator.authentication'] | 101 WebAuthentication: ['navigator.authentication'] |
| 102 }); | 102 }); |
| 103 idl_array.test(); | 103 idl_array.test(); |
| 104 })(); | 104 })(); |
| 105 </script> | 105 </script> |
| OLD | NEW |