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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-get-basics.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Credential Manager: get() basics.</title> 2 <title>Credential Manager: get() basics.</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script src="resources/interfaces.js"></script> 5 <script src="resources/interfaces.js"></script>
6 <script> 6 <script>
7 function stubResolverUndefinedChecker(c) { 7 function stubResolverUndefinedChecker(c) {
8 assert_equals(c, undefined); 8 assert_equals(c, undefined);
9 this.done(); 9 this.done();
10 } 10 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 t.step(function () { 95 t.step(function () {
96 navigator.credentials.get({ 96 navigator.credentials.get({
97 unmediated: true 97 unmediated: true
98 }).then( 98 }).then(
99 t.step_func(stubResolverUndefinedChecker.bind(t)), 99 t.step_func(stubResolverUndefinedChecker.bind(t)),
100 t.step_func(stubRejectionChecker.bind(t))); 100 t.step_func(stubRejectionChecker.bind(t)));
101 }); 101 });
102 }()); 102 }());
103 103
104 (function() { 104 (function() {
105 var t = async_test("navigator.credentials.get() with a valid options includi ng mediation.");
106 t.step(function () {
107 navigator.credentials.get({
108 mediation: "silent"
109 }).then(
110 t.step_func(stubResolverUndefinedChecker.bind(t)),
111 t.step_func(stubRejectionChecker.bind(t)));
112 });
113 }());
114
115 (function() {
105 var t = async_test("navigator.credentials.get() with an options including an unknown attribute."); 116 var t = async_test("navigator.credentials.get() with an options including an unknown attribute.");
106 t.step(function () { 117 t.step(function () {
107 navigator.credentials.get({ 118 navigator.credentials.get({
108 notValid: 'yay!' 119 notValid: 'yay!'
109 }).then( 120 }).then(
110 t.step_func(stubResolverUndefinedChecker.bind(t)), 121 t.step_func(stubResolverUndefinedChecker.bind(t)),
111 t.step_func(stubRejectionChecker.bind(t))); 122 t.step_func(stubRejectionChecker.bind(t)));
112 }); 123 });
113 }()); 124 }());
114 125
(...skipping 25 matching lines...) Expand all
140 if (window.testRunner) 151 if (window.testRunner)
141 testRunner.setMockCredentialManagerResponse(id, name, icon, password ); 152 testRunner.setMockCredentialManagerResponse(id, name, icon, password );
142 navigator.credentials.get({ 153 navigator.credentials.get({
143 password: true 154 password: true
144 }).then( 155 }).then(
145 t.step_func(stubResolverChecker.bind(t)), 156 t.step_func(stubResolverChecker.bind(t)),
146 t.step_func(stubRejectionChecker.bind(t))); 157 t.step_func(stubRejectionChecker.bind(t)));
147 }); 158 });
148 }()); 159 }());
149 </script> 160 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698