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

Side by Side Diff: LayoutTests/http/tests/credentialmanager/credentialscontainer-request-basics.html

Issue 1205003002: Credential Management: Implement CredentialRequestOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/modules/credentialmanager/CredentialRequestOptions.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Credential Manager: request() basics.</title> 2 <title>Credential Manager: request() 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="/serviceworker/resources/interfaces.js"></script> 5 <script src="/serviceworker/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 17 matching lines...) Expand all
28 navigator.credentials.request({}).then( 28 navigator.credentials.request({}).then(
29 t.step_func(stubResolverUndefinedChecker.bind(t)), 29 t.step_func(stubResolverUndefinedChecker.bind(t)),
30 t.step_func(stubRejectionChecker.bind(t))); 30 t.step_func(stubRejectionChecker.bind(t)));
31 }); 31 });
32 }()); 32 }());
33 33
34 (function() { 34 (function() {
35 var t = async_test("Verify the basics of request()."); 35 var t = async_test("Verify the basics of request().");
36 t.step(function () { 36 t.step(function () {
37 navigator.credentials.request({ 37 navigator.credentials.request({
38 federations: [ 'https://example.com/' ] 38 federated: [ 'https://example.com/' ]
39 }).then( 39 }).then(
40 t.step_func(stubResolverUndefinedChecker.bind(t)), 40 t.step_func(stubResolverUndefinedChecker.bind(t)),
41 t.step_func(stubRejectionChecker.bind(t))); 41 t.step_func(stubRejectionChecker.bind(t)));
42 }); 42 });
43 }()); 43 }());
44 44
45 (function() { 45 (function() {
46 var t = async_test("Verify the basics of request()."); 46 var t = async_test("Verify the basics of request().");
47 t.step(function () { 47 t.step(function () {
48 navigator.credentials.request({ 48 navigator.credentials.request({
49 federations: [ 'https://example.com/' ], 49 federated: [ 'https://example.com/' ],
50 zeroClickOnly: true 50 suppressUI: true
51 }).then( 51 }).then(
52 t.step_func(stubResolverUndefinedChecker.bind(t)), 52 t.step_func(stubResolverUndefinedChecker.bind(t)),
53 t.step_func(stubRejectionChecker.bind(t))); 53 t.step_func(stubRejectionChecker.bind(t)));
54 }); 54 });
55 }()); 55 }());
56 56
57 (function() { 57 (function() {
58 var t = async_test("Verify the basics of request()."); 58 var t = async_test("Verify the basics of request().");
59 t.step(function () { 59 t.step(function () {
60 navigator.credentials.request({ 60 navigator.credentials.request({
61 zeroClickOnly: true 61 suppressUI: true
62 }).then( 62 }).then(
63 t.step_func(stubResolverUndefinedChecker.bind(t)), 63 t.step_func(stubResolverUndefinedChecker.bind(t)),
64 t.step_func(stubRejectionChecker.bind(t))); 64 t.step_func(stubRejectionChecker.bind(t)));
65 }); 65 });
66 }()); 66 }());
67 67
68 (function() { 68 (function() {
69 var t = async_test("Verify the basics of request()."); 69 var t = async_test("Verify the basics of request().");
70 t.step(function () { 70 t.step(function () {
71 navigator.credentials.request({ 71 navigator.credentials.request({
(...skipping 28 matching lines...) Expand all
100 var t = async_test("Verify that the mock returns the values we give it."); 100 var t = async_test("Verify that the mock returns the values we give it.");
101 t.step(function() { 101 t.step(function() {
102 if (window.testRunner) 102 if (window.testRunner)
103 testRunner.addMockCredentialManagerResponse(id, name, avatar, passwo rd); 103 testRunner.addMockCredentialManagerResponse(id, name, avatar, passwo rd);
104 navigator.credentials.request().then( 104 navigator.credentials.request().then(
105 t.step_func(stubResolverChecker.bind(t)), 105 t.step_func(stubResolverChecker.bind(t)),
106 t.step_func(stubRejectionChecker.bind(t))); 106 t.step_func(stubRejectionChecker.bind(t)));
107 }); 107 });
108 }()); 108 }());
109 </script> 109 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/modules/credentialmanager/CredentialRequestOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698