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

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

Issue 1160283002: Credential Management: Rename 'notifySignedOut' to 'requireUserMediation'. (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@rename-avatar
Patch Set: WebExposed. 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Credential Manager: notifySignedOut() basics.</title> 2 <title>Credential Manager: requireUserMediation() 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> 5 <script>
6 function stubResolverChecker(c) { 6 function stubResolverChecker(c) {
7 assert_equals(c, undefined, "FIXME: We're currently always returning 'undefi ned'."); 7 assert_equals(c, undefined, "FIXME: We're currently always returning 'undefi ned'.");
8 this.done(); 8 this.done();
9 } 9 }
10 10
11 function stubRejectionChecker(reason) { 11 function stubRejectionChecker(reason) {
12 assert_unreached("notifySignedOut() should not reject, but did: " + reason.n ame); 12 assert_unreached("requireUserMediation() should not reject, but did: " + rea son.name);
13 } 13 }
14 14
15 async_test(function () { 15 async_test(function () {
16 navigator.credentials.notifySignedOut().then( 16 navigator.credentials.requireUserMediation().then(
17 this.step_func(stubResolverChecker.bind(this)), 17 this.step_func(stubResolverChecker.bind(this)),
18 this.step_func(stubRejectionChecker.bind(this))); 18 this.step_func(stubRejectionChecker.bind(this)));
19 }, "Verify the basics of notifySignedOut()"); 19 }, "Verify the basics of requireUserMediation()");
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698