Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
cae07f31
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
cae07f31
编写于
6月 28, 2022
作者:
1
15829070344
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
用例覆盖大小写修改
Signed-off-by:
N
15829070344
<
hehaitao5@huawei.com
>
上级
858ce2d4
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
37 addition
and
6 deletion
+37
-6
account/appaccount/actsaccounttest/entry/src/main/js/test/OAuthToken.test.js
...actsaccounttest/entry/src/main/js/test/OAuthToken.test.js
+31
-0
account/appaccount/actsgetallaccounts/entry/src/main/js/test/Getallaccounts.test.js
...allaccounts/entry/src/main/js/test/Getallaccounts.test.js
+1
-1
account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/entry/src/main/js/test/Getallaccessible.test.js
...eaccounts/entry/src/main/js/test/Getallaccessible.test.js
+1
-1
account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/entry/src/main/js/test/Getmultiple.test.js
...ssiblemultiple/entry/src/main/js/test/Getmultiple.test.js
+1
-1
account/appaccount/sceneProject/actsaccountaccessibleFirst/entry/src/main/js/default/pages/index/index.js
...sibleFirst/entry/src/main/js/default/pages/index/index.js
+1
-1
account/appaccount/sceneProject/actsaccountsceneonoff/entry/src/main/js/default/pages/index/index.js
...sceneonoff/entry/src/main/js/default/pages/index/index.js
+1
-1
account/osaccount/actsosaccountthirdpartytest/entry/src/main/js/test/OsAccountGet.test.js
...hirdpartytest/entry/src/main/js/test/OsAccountGet.test.js
+1
-1
未找到文件。
account/appaccount/actsaccounttest/entry/src/main/js/test/OAuthToken.test.js
浏览文件 @
cae07f31
...
@@ -2494,6 +2494,25 @@ describe('ActsAccountOAuthToken', function () {
...
@@ -2494,6 +2494,25 @@ describe('ActsAccountOAuthToken', function () {
appAccountManager
.
getAuthenticatorInfo
(
OWNERSELF
,(
err
,
databack
)
=>
{
appAccountManager
.
getAuthenticatorInfo
(
OWNERSELF
,(
err
,
databack
)
=>
{
console
.
debug
(
"
====>ActsAccountOAuthToken_9500 getAuthenticatorInfo err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>ActsAccountOAuthToken_9500 getAuthenticatorInfo err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
except
(
account
.
ResultCode
.
SUCCESS
).
assertEqual
(
0
);
expect
(
account
.
ResultCode
.
ERROR_ACCOUNT_NOT_EXIST
).
assertEqual
(
10001
);
expect
(
account
.
ResultCode
.
ERROR_APP_ACCOUNT_SERVICE_EXCEPTION
).
assertEqual
(
10002
);
expect
(
account
.
ResultCode
.
ERROR_INVALID_PASSWORD
).
assertEqual
(
10003
);
expect
(
account
.
ResultCode
.
ERROR_INVALID_REQUEST
).
assertEqual
(
10004
);
expect
(
account
.
ResultCode
.
ERROR_INVALID_RESPONSE
).
assertEqual
(
10005
);
expect
(
account
.
ResultCode
.
ERROR_NETWORK_EXCEPTION
).
assertEqual
(
10006
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_AUTHENTICATOR_NOT_EXIST
).
assertEqual
(
10007
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_CANCELED
).
assertEqual
(
10008
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_LIST_TOO_LARGE
).
assertEqual
(
10009
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_SERVICE_BUSY
).
assertEqual
(
10010
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_SERVICE_EXCEPTION
).
assertEqual
(
10011
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_SESSION_NOT_EXIST
).
assertEqual
(
10012
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_TIMEOUT
).
assertEqual
(
10013
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_TOKEN_NOT_EXIST
).
assertEqual
(
10014
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_TOKEN_TOO_MANY
).
assertEqual
(
10015
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_UNSUPPORT_ACTION
).
assertEqual
(
10016
);
expect
(
account
.
ResultCode
.
ERROR_OAUTH_UNSUPPORT_AUTH_TYPE
).
assertEqual
(
10017
);
expect
(
account
.
ResultCode
.
ERROR_PERMISSION_DENIED
).
assertEqual
(
10018
);
done
();
done
();
});
});
});
});
...
@@ -2504,6 +2523,16 @@ describe('ActsAccountOAuthToken', function () {
...
@@ -2504,6 +2523,16 @@ describe('ActsAccountOAuthToken', function () {
appAccountManager
.
getAuthenticatorInfo
(
""
,(
err
,
databack
)
=>
{
appAccountManager
.
getAuthenticatorInfo
(
""
,(
err
,
databack
)
=>
{
console
.
debug
(
"
====>ActsAccountOAuthToken_9600 getAuthenticatorInfo err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>ActsAccountOAuthToken_9600 getAuthenticatorInfo err:
"
+
JSON
.
stringify
(
err
));
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
expect
(
err
.
code
!=
0
).
assertEqual
(
true
);
expect
(
account
.
Constants
.
ACTION_ADD_ACCOUNT_IMPLICITLY
).
assertEqual
(
'
addAccountImplicitly
'
);
expect
(
account
.
Constants
.
ACTION_AUTHENTICATE
).
assertEqual
(
'
authenticate
'
);
expect
(
account
.
Constants
.
KEY_NAME
).
assertEqual
(
'
name
'
);
expect
(
account
.
Constants
.
KEY_OWNER
).
assertEqual
(
'
owner
'
);
expect
(
account
.
Constants
.
KEY_TOKEN
).
assertEqual
(
'
token
'
);
expect
(
account
.
Constants
.
KEY_AUTHTYPE
).
assertEqual
(
'
authType
'
);
expect
(
account
.
Constants
.
KEY_SESSION_ID
).
assertEqual
(
'
sessionId
'
);
expect
(
account
.
Constants
.
KEY_CALLER_PID
).
assertEqual
(
'
callerPid
'
);
expect
(
account
.
Constants
.
KEY_CALLER_UID
).
assertEqual
(
'
callerUid
'
);
expect
(
account
.
Constants
.
KEY_CALLER_BUNDLE_NAME
).
assertEqual
(
'
callerBundleName
'
);
done
();
done
();
});
});
});
});
...
@@ -3337,6 +3366,8 @@ describe('ActsAccountOAuthToken', function () {
...
@@ -3337,6 +3366,8 @@ describe('ActsAccountOAuthToken', function () {
console
.
debug
(
"
====>ActsAccountOAuthToken_13200 getAuthenticatorInfo err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>ActsAccountOAuthToken_13200 getAuthenticatorInfo err:
"
+
JSON
.
stringify
(
err
));
console
.
debug
(
"
====>ActsAccountOAuthToken_13200 getAuthenticatorInfo dataInfo:
"
+
JSON
.
stringify
(
dataInfo
));
console
.
debug
(
"
====>ActsAccountOAuthToken_13200 getAuthenticatorInfo dataInfo:
"
+
JSON
.
stringify
(
dataInfo
));
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
isNaN
(
dataInfo
.
iconId
)).
assertFalse
();
expect
(
isNaN
(
dataInfo
.
labelId
)).
assertFalse
();
done
();
done
();
});
});
});
});
...
...
account/appaccount/actsgetallaccounts/entry/src/main/js/test/Getallaccounts.test.js
浏览文件 @
cae07f31
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
account
from
'
@ohos.account.appAccount
'
import
account
from
'
@ohos.account.appAccount
'
import
featureAbility
from
'
@ohos.ability.feature
a
bility
'
import
featureAbility
from
'
@ohos.ability.feature
A
bility
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
const
TIMEOUT
=
2000
;
const
TIMEOUT
=
2000
;
...
...
account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/entry/src/main/js/test/Getallaccessible.test.js
浏览文件 @
cae07f31
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
account
from
'
@ohos.account.appAccount
'
import
account
from
'
@ohos.account.appAccount
'
import
featureAbility
from
'
@ohos.ability.feature
a
bility
'
import
featureAbility
from
'
@ohos.ability.feature
A
bility
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
const
TIMEOUT
=
2000
;
const
TIMEOUT
=
2000
;
...
...
account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/entry/src/main/js/test/Getmultiple.test.js
浏览文件 @
cae07f31
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
account
from
'
@ohos.account.appAccount
'
import
account
from
'
@ohos.account.appAccount
'
import
featureAbility
from
'
@ohos.ability.feature
a
bility
'
import
featureAbility
from
'
@ohos.ability.feature
A
bility
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
const
TIMEOUT
=
5000
;
const
TIMEOUT
=
5000
;
...
...
account/appaccount/sceneProject/actsaccountaccessibleFirst/entry/src/main/js/default/pages/index/index.js
浏览文件 @
cae07f31
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
account
from
'
@ohos.account.appAccount
'
import
account
from
'
@ohos.account.appAccount
'
import
featureAbility
from
'
@ohos.ability.feature
a
bility
'
import
featureAbility
from
'
@ohos.ability.feature
A
bility
'
const
injectRef
=
Object
.
getPrototypeOf
(
global
)
||
global
const
injectRef
=
Object
.
getPrototypeOf
(
global
)
||
global
injectRef
.
regeneratorRuntime
=
require
(
'
@babel/runtime/regenerator
'
)
injectRef
.
regeneratorRuntime
=
require
(
'
@babel/runtime/regenerator
'
)
...
...
account/appaccount/sceneProject/actsaccountsceneonoff/entry/src/main/js/default/pages/index/index.js
浏览文件 @
cae07f31
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
account
from
'
@ohos.account.appAccount
'
import
account
from
'
@ohos.account.appAccount
'
import
commonevent
from
'
@ohos.common
e
vent
'
import
commonevent
from
'
@ohos.common
E
vent
'
const
ACCOUNT_TEST_ONOFF_EXTRA
=
1
const
ACCOUNT_TEST_ONOFF_EXTRA
=
1
const
ACCOUNT_TEST_ONOFF_ASSOCIATEDDATA
=
2
const
ACCOUNT_TEST_ONOFF_ASSOCIATEDDATA
=
2
...
...
account/osaccount/actsosaccountthirdpartytest/entry/src/main/js/test/OsAccountGet.test.js
浏览文件 @
cae07f31
...
@@ -17,7 +17,7 @@ import bundle from '@ohos.bundle'
...
@@ -17,7 +17,7 @@ import bundle from '@ohos.bundle'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
const
ERR_OS_ACCOUNT_SERVICE_MANAGER_BAD_UID_ERR
=
4653057
;
const
ERR_OS_ACCOUNT_SERVICE_MANAGER_BAD_UID_ERR
=
4653057
;
describe
(
'
ActsOsAccountThirdPartyTest_third_
1
'
,
function
()
{
describe
(
'
ActsOsAccountThirdPartyTest_third_
2
'
,
function
()
{
/*
/*
* @tc.number : ActsOsAccountGetIdFormUid_0100
* @tc.number : ActsOsAccountGetIdFormUid_0100
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录