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

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

Issue 2864493003: Deprecate CredentialRequestOptions.unmediated in favor mediation enum (Closed)
Patch Set: Rebase 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-warnings.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-warnings.html b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-warnings.html
new file mode 100644
index 0000000000000000000000000000000000000000..177e5be73accafd3e208077016e757732183070a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-warnings.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<title>Credential Management API: get() warnings.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(function (t) {
+ navigator.credentials.get({
+ unmediated: true,
+ mediation: "optional"
+ });
+}, "mediation: 'optional' overrides unmediated: true");
+
+test(function (t) {
+ navigator.credentials.get({
+ unmediated: true,
+ mediation: "required"
+ });
+}, "mediation: 'required' overrides unmediated: true");
+
+test(function (t) {
+ navigator.credentials.get({
+ unmediated: false,
+ mediation: "silent"
+ });
+}, "mediation: 'silent' overrides unmediated: false");
+
+test(function (t) {
+ navigator.credentials.get({
+ unmediated: false,
+ mediation: "required"
+ });
+}, "mediation: 'required' overrides unmediated: false");
+</script>

Powered by Google App Engine
This is Rietveld 408576698