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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-preventsilentaccess-basics.html

Issue 2895243002: Rename requireUserMediation to preventSilentAccess in the CM API. (Closed)
Patch Set: merge 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-preventsilentaccess-basics.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-requireusermediation-basics.html b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-preventsilentaccess-basics.html
similarity index 51%
copy from third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-requireusermediation-basics.html
copy to third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-preventsilentaccess-basics.html
index 9df20f44757f1bb0ebc7437e9061177208365a0f..daaefc46ccc3864a8b6ce780461f380104fe525e 100644
--- a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-requireusermediation-basics.html
+++ b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-preventsilentaccess-basics.html
@@ -1,20 +1,20 @@
<!DOCTYPE html>
-<title>Credential Manager: requireUserMediation() basics.</title>
+<title>Credential Manager: preventSilentAccess() basics.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
function stubResolverChecker(c) {
- assert_equals(c, undefined, "FIXME: We're currently always returning 'undefined'.");
+ assert_equals(c, undefined);
this.done();
}
function stubRejectionChecker(reason) {
- assert_unreached("requireUserMediation() should not reject, but did: " + reason.name);
+ assert_unreached("preventSilentAccess() should not reject, but did: " + reason.name);
}
async_test(function () {
- navigator.credentials.requireUserMediation().then(
+ navigator.credentials.preventSilentAccess().then(
this.step_func(stubResolverChecker.bind(this)),
this.step_func(stubRejectionChecker.bind(this)));
-}, "Verify the basics of requireUserMediation()");
+}, "Verify the basics of preventSilentAccess()");
</script>

Powered by Google App Engine
This is Rietveld 408576698