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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-errors.html

Issue 2864493003: Deprecate CredentialRequestOptions.unmediated in favor mediation enum (Closed)
Patch Set: Security Owners Created 3 years, 7 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
Index: third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-errors.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-errors.html b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-errors.html
index 347fc413fa6d90d72063b970e1a654354afa5276..0acb45c4ed1f3643c93efb3bd4d4b3c01b32e8b3 100644
--- a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-errors.html
+++ b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-errors.html
@@ -25,4 +25,15 @@ promise_test(function (t) {
testRunner.setMockCredentialManagerError("unknown");
return promise_rejects(t, "NotReadableError", navigator.credentials.get({ password: true }));
});
+promise_test(function (t) {
+ return promise_rejects(t, new TypeError(), navigator.credentials.get({
+ mediation: "invalid"
+ }));
+});
+promise_test(function (t) {
+ return promise_rejects(t, "NotSupportedError", navigator.credentials.get({
+ unmediated: true,
+ mediation: "required"
+ }));
+});
</script>

Powered by Google App Engine
This is Rietveld 408576698