summaryrefslogtreecommitdiffstats
path: root/dom/webauthn/tests/u2f/test_webauthn_isexternalctap2securitykeysupported.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /dom/webauthn/tests/u2f/test_webauthn_isexternalctap2securitykeysupported.html
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/webauthn/tests/u2f/test_webauthn_isexternalctap2securitykeysupported.html')
-rw-r--r--dom/webauthn/tests/u2f/test_webauthn_isexternalctap2securitykeysupported.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/dom/webauthn/tests/u2f/test_webauthn_isexternalctap2securitykeysupported.html b/dom/webauthn/tests/u2f/test_webauthn_isexternalctap2securitykeysupported.html
new file mode 100644
index 0000000000..e25225a123
--- /dev/null
+++ b/dom/webauthn/tests/u2f/test_webauthn_isexternalctap2securitykeysupported.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<head>
+ <title>Test for W3C Web Authentication isExternalCTAP2SecurityKeySupported</title>
+ <script src="/tests/SimpleTest/SimpleTest.js"></script>
+ <script type="text/javascript" src="../u2futil.js"></script>
+ <script type="text/javascript" src="../pkijs/common.js"></script>
+ <script type="text/javascript" src="../pkijs/asn1.js"></script>
+ <script type="text/javascript" src="../pkijs/x509_schema.js"></script>
+ <script type="text/javascript" src="../pkijs/x509_simpl.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+</head>
+<body>
+
+<h1>Test for W3C Web Authentication isExternalCTAP2SecurityKeySupported</h1>
+<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1526023">Mozilla Bug 1526023</a>
+
+<script class="testbody" type="text/javascript">
+"use strict";
+
+// Execute the full-scope test
+SimpleTest.waitForExplicitFinish();
+
+add_task(async function test_external_key_support() {
+ PublicKeyCredential.isExternalCTAP2SecurityKeySupported()
+ .then(aResult => ok(true, `Should always return either true or false: ${aResult}`))
+ .catch(aProblem => ok(false, `We shouldn't get here: ${aProblem}`))
+});
+
+</script>
+
+</body>
+</html>