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

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

Issue 1217463002: Remove the notifyFailedSignedIn callback from Blink. (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 | LayoutTests/http/tests/credentialmanager/credentialscontainer-notifysignedin-basics.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Credential Manager: notifyFailedSignIn() basics.</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script>
6 function stubResolverChecker(c) {
7 assert_equals(c, undefined, "FIXME: We're currently always returning 'undefi ned'.");
8 this.done();
9 }
10
11 function stubRejectionChecker(reason) {
12 assert_unreached("notifyFailedSignIn() should not reject, but did: " + reaso n);
13 }
14
15 var local = new PasswordCredential('id', 'pencil', 'name', 'https://example.com/ avatar.png');
16 var federated = new FederatedCredential({
17 'id': 'id',
18 'provider': 'https://federation.test/',
19 'name': 'name',
20 'iconURL': 'https://example.test/icon.png'
21 });
22
23 async_test(function () {
24 navigator.credentials.notifyFailedSignIn().then(
25 this.step_func(function () { assert_unreached("notifyFailedSignIn() shou ld reject."); }),
26 this.step_func(function (reason) {
27 assert_equals(reason.name, "TypeError");
28 this.done();
29 }));
30 }, "Verify the basics of notifyFailedSignIn(): PasswordCredential.");
31
32 async_test(function () {
33 navigator.credentials.notifyFailedSignIn(local).then(
34 this.step_func(stubResolverChecker.bind(this)),
35 this.step_func(stubRejectionChecker.bind(this)));
36 }, "Verify the basics of notifyFailedSignIn(): PasswordCredential.");
37
38 async_test(function () {
39 navigator.credentials.notifyFailedSignIn(federated).then(
40 this.step_func(stubResolverChecker.bind(this)),
41 this.step_func(stubRejectionChecker.bind(this)));
42 }, "Verify the basics of notifyFailedSignIn(): FederatedCredential.");
43 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/credentialmanager/credentialscontainer-notifysignedin-basics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698