未验证 提交 33ca2dbb 编写于 作者: O openharmony_ci 提交者: Gitee

!3141 程序访问控制授权与撤销callback异步返回内容修改

Merge pull request !3141 from zhouyan/master
......@@ -185,7 +185,7 @@ describe('AccessTokenTest', function () {
console.log("Test_grantUserGrantedPermission_003 start");
var atManager = abilityAccessCtrl.createAtManager();
atManager.grantUserGrantedPermission(tokenID, permissionNameUser, PermissionFlag.PERMISSION_USER_SET,
function (result) {
function (err, result) {
console.log("Test_grantUserGrantedPermission_003 tokenID" + tokenID + "-" + result)
expect(result).assertEqual(RESULT_SUCCESS);
......@@ -292,7 +292,7 @@ describe('AccessTokenTest', function () {
console.log("Test_revokeUserGrantedPermission_003 start");
var atManager = abilityAccessCtrl.createAtManager();
atManager.revokeUserGrantedPermission(tokenID, permissionNameUser, PermissionFlag.PERMISSION_USER_SET,
function (result) {
function (err, result) {
console.log("Test_revokeUserGrantedPermission_003 tokenID" + tokenID + "-" + result)
expect(result).assertEqual(RESULT_SUCCESS);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册