提交 ca7e84e2 编写于 作者: Z zhouyan

callback异步方式返回AsyncCallback结构修复

Signed-off-by: Nzhouyan <zhouyan128@huawei.com>
上级 c5dfb00a
......@@ -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.
先完成此消息的编辑!
想要评论请 注册