| 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>
|
|
|