blob: daaefc46ccc3864a8b6ce780461f380104fe525e [file] [log] [blame]
<!DOCTYPE html>
<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);
this.done();
}
function stubRejectionChecker(reason) {
assert_unreached("preventSilentAccess() should not reject, but did: " + reason.name);
}
async_test(function () {
navigator.credentials.preventSilentAccess().then(
this.step_func(stubResolverChecker.bind(this)),
this.step_func(stubRejectionChecker.bind(this)));
}, "Verify the basics of preventSilentAccess()");
</script>