summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/credential-management/support/federatedcredential-get.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/credential-management/support/federatedcredential-get.html')
-rw-r--r--testing/web-platform/tests/credential-management/support/federatedcredential-get.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/credential-management/support/federatedcredential-get.html b/testing/web-platform/tests/credential-management/support/federatedcredential-get.html
new file mode 100644
index 0000000000..476f32688f
--- /dev/null
+++ b/testing/web-platform/tests/credential-management/support/federatedcredential-get.html
@@ -0,0 +1,17 @@
+<script>
+ navigator.credentials.get({ 'federated': { 'providers': ['https://example.com' ] } })
+ .then(c => {
+ window.parent.postMessage({
+ "status": "resolved",
+ "credential": c,
+ "exception": null
+ }, "*");
+ })
+ .catch(omg => {
+ window.parent.postMessage({
+ "status": "rejected",
+ "credential": null,
+ "exception": omg.name
+ }, "*");
+ });
+</script>