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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Credential Management API: get() warnings.</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script>
6 test(function (t) {
7 navigator.credentials.get({
8 unmediated: true,
9 mediation: "optional"
10 });
11 }, "mediation: 'optional' overrides unmediated: true");
12
13 test(function (t) {
14 navigator.credentials.get({
15 unmediated: true,
16 mediation: "required"
17 });
18 }, "mediation: 'required' overrides unmediated: true");
19
20 test(function (t) {
21 navigator.credentials.get({
22 unmediated: false,
23 mediation: "silent"
24 });
25 }, "mediation: 'silent' overrides unmediated: false");
26
27 test(function (t) {
28 navigator.credentials.get({
29 unmediated: false,
30 mediation: "required"
31 });
32 }, "mediation: 'required' overrides unmediated: false");
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698