Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: third_party/WebKit/LayoutTests/webauth/idl.html

Issue 2623003002: Added idlharness test for webauth (Closed)
Patch Set: Moved idls from untested to tested; updated expected file Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webauth/idl-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webauth/idl.html
diff --git a/third_party/WebKit/LayoutTests/webauth/idl.html b/third_party/WebKit/LayoutTests/webauth/idl.html
new file mode 100644
index 0000000000000000000000000000000000000000..730d8cf039567e0e093a465e9f82f9d3b3188d86
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/webauth/idl.html
@@ -0,0 +1,105 @@
+<!DOCTYPE html>
+<script src=../resources/testharness.js></script>
+<script src=../resources/testharnessreport.js></script>
+<script src=../resources/WebIDLParser.js></script>
+<script src=../resources/idlharness.js></script>
+<script type="text/plain" id="tested">
+[SecureContext]
+interface ScopedCredentialInfo {
+ readonly attribute ArrayBuffer clientData;
+ readonly attribute ArrayBuffer attestation;
+};
+
+dictionary RelyingPartyAccount {
+ required DOMString rpDisplayName;
+ required DOMString displayName;
+ required DOMString id;
+ DOMString name;
+ DOMString imageURL;
+};
+
+dictionary ScopedCredentialParameters {
+ required ScopedCredentialType type;
+ required AlgorithmIdentifier algorithm;
+};
+
+dictionary ScopedCredentialOptions {
+ unsigned long timeoutSeconds;
+ USVString rpId;
+ sequence < ScopedCredentialDescriptor > excludeList;
+ AuthenticationExtension extensions;
+};
+
+[SecureContext]
+interface AuthenticationAssertion {
+ readonly attribute ScopedCredential credential;
+ readonly attribute ArrayBuffer clientData;
+ readonly attribute ArrayBuffer authenticatorData;
+ readonly attribute ArrayBuffer signature;
+};
+
+dictionary AssertionOptions {
+ unsigned long timeoutSeconds;
+ USVString rpId;
+ sequence < ScopedCredentialDescriptor > allowList;
+ AuthenticationExtension extensions;
+};
+
+dictionary AuthenticationExtension {
+};
+
+dictionary AuthenticationClientData {
+ required DOMString challenge;
+ required DOMString origin;
+ required AlgorithmIdentifier hashAlg;
+ DOMString tokenBinding;
+ AuthenticationExtension extensions;
+};
+
+enum ScopedCredentialType {
+ "ScopedCred"
+};
+
+[SecureContext]
+interface ScopedCredential {
+ readonly attribute ScopedCredentialType type;
+ readonly attribute ArrayBuffer id;
+};
+
+dictionary ScopedCredentialDescriptor {
+ required ScopedCredentialType type;
+ required BufferSource id;
+ sequence < Transport > transports;
+};
+
+enum Transport {
+ "usb",
+ "nfc",
+ "ble"
+};
+[SecureContext]
+interface WebAuthentication {
+ Promise < ScopedCredentialInfo > makeCredential (
+ Account accountInformation,
+ sequence < ScopedCredentialParameters > cryptoParameters,
+ BufferSource attestationChallenge,
+ optional ScopedCredentialOptions options
+ );
+
+ Promise < AuthenticationAssertion > getAssertion (
+ BufferSource assertionChallenge,
+ optional AssertionOptions options
+ );
+};
+</script>
+<script>
+(function() {
+ "use strict";
+ var idl_array = new IdlArray();
+ idl_array.add_idls(document.querySelector('#tested').textContent);
+ idl_array.add_objects({
+ WebAuthentication: ['navigator.authentication']
+ });
+ idl_array.test();
+})();
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webauth/idl-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698