Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
7add6e99
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7add6e99
编写于
11月 18, 2021
作者:
O
openharmony_ci
提交者:
Gitee
11月 18, 2021
浏览文件
操作
浏览文件
下载
差异文件
!1119 Bms xts update
Merge pull request !1119 from blackleon/master_1118
上级
dd6dd162
94e6e444
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
26 addition
and
7 deletion
+26
-7
appexecfwk/bundle_standard/bundlemanager/actsbmskittest/entry/src/main/js/test/ActsBmsKitTest.test.js
...sbmskittest/entry/src/main/js/test/ActsBmsKitTest.test.js
+25
-6
appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/ActsBmsModuleUsageRecordTest.test.js
...try/src/main/js/test/ActsBmsModuleUsageRecordTest.test.js
+1
-1
未找到文件。
appexecfwk/bundle_standard/bundlemanager/actsbmskittest/entry/src/main/js/test/ActsBmsKitTest.test.js
浏览文件 @
7add6e99
...
@@ -91,7 +91,9 @@ describe('ActsBmsKitTest', function () {
...
@@ -91,7 +91,9 @@ describe('ActsBmsKitTest', function () {
it
(
'
ActsBmsKit_getAllShortcutInfo_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsBmsKit_getAllShortcutInfo_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
=====================ActsBmsKit_getAllShortcutInfo_0200==================
'
);
console
.
info
(
'
=====================ActsBmsKit_getAllShortcutInfo_0200==================
'
);
var
bundleName
=
'
com.example.third1
'
;
var
bundleName
=
'
com.example.third1
'
;
for
(
let
count
=
0
;
count
<
STRESSLEVEL
;
count
++
)
{
let
flag
=
true
;
let
count
=
0
;
for
(
let
i
=
0
;
i
<
STRESSLEVEL
;
i
++
)
{
bundle
.
getAllShortcutInfo
(
bundleName
,
async
(
err
,
data
)
=>
{
bundle
.
getAllShortcutInfo
(
bundleName
,
async
(
err
,
data
)
=>
{
expect
(
data
.
length
).
assertEqual
(
1
);
expect
(
data
.
length
).
assertEqual
(
1
);
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
err
.
code
).
assertEqual
(
0
);
...
@@ -101,9 +103,14 @@ describe('ActsBmsKitTest', function () {
...
@@ -101,9 +103,14 @@ describe('ActsBmsKitTest', function () {
}
else
if
(
err
.
code
!=
0
)
{
}
else
if
(
err
.
code
!=
0
)
{
console
.
log
(
'
call function level is:
'
+
count
);
console
.
log
(
'
call function level is:
'
+
count
);
expect
().
assertFail
();
expect
().
assertFail
();
done
()
;
flag
=
false
;
}
}
count
++
;
})
})
if
(
!
flag
)
{
done
();
break
;
}
}
}
})
})
...
@@ -132,8 +139,10 @@ describe('ActsBmsKitTest', function () {
...
@@ -132,8 +139,10 @@ describe('ActsBmsKitTest', function () {
*/
*/
it
(
'
ActsBmsKit_checkPermission_0200
'
,
0
,
async
function
(
done
)
{
it
(
'
ActsBmsKit_checkPermission_0200
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
=====================ActsBmsKit_checkPermission_0200==================
'
);
console
.
info
(
'
=====================ActsBmsKit_checkPermission_0200==================
'
);
for
(
let
count
=
0
;
count
<
STRESSLEVEL
;
count
++
)
{
let
flag
=
true
;
await
bundle
.
checkPermission
(
BUNDLE_NAME
,
PERMISSION_NAME
,
(
err
,
data
)
=>
{
let
count
=
0
;
for
(
let
i
=
0
;
i
<
STRESSLEVEL
;
i
++
)
{
bundle
.
checkPermission
(
BUNDLE_NAME
,
PERMISSION_NAME
,
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
data
).
assertEqual
(
0
);
expect
(
data
).
assertEqual
(
0
);
console
.
log
(
'
checkPermission is granted:
'
+
data
);
console
.
log
(
'
checkPermission is granted:
'
+
data
);
...
@@ -142,9 +151,14 @@ describe('ActsBmsKitTest', function () {
...
@@ -142,9 +151,14 @@ describe('ActsBmsKitTest', function () {
}
else
if
(
err
.
code
!=
0
||
data
!=
0
)
{
}
else
if
(
err
.
code
!=
0
||
data
!=
0
)
{
console
.
log
(
'
call function level is:
'
+
count
);
console
.
log
(
'
call function level is:
'
+
count
);
expect
().
assertFail
();
expect
().
assertFail
();
done
()
;
flag
=
false
;
}
}
count
++
;
})
})
if
(
!
flag
)
{
done
();
break
;
}
}
}
})
})
...
@@ -178,6 +192,7 @@ describe('ActsBmsKitTest', function () {
...
@@ -178,6 +192,7 @@ describe('ActsBmsKitTest', function () {
console
.
debug
(
'
=====================ActsBmsKit_getModuleUsageRecordTest_0200==================
'
);
console
.
debug
(
'
=====================ActsBmsKit_getModuleUsageRecordTest_0200==================
'
);
var
bundleName
=
'
com.example.third1
'
;
var
bundleName
=
'
com.example.third1
'
;
let
count
=
0
;
let
count
=
0
;
let
flag
=
true
;
for
(
let
i
=
0
;
i
<
STRESSLEVEL
;
i
++
)
{
for
(
let
i
=
0
;
i
<
STRESSLEVEL
;
i
++
)
{
bundle
.
getModuleUsageRecords
(
50
,
(
err
,
data
)
=>
{
bundle
.
getModuleUsageRecords
(
50
,
(
err
,
data
)
=>
{
expect
(
err
.
code
).
assertEqual
(
0
);
expect
(
err
.
code
).
assertEqual
(
0
);
...
@@ -189,10 +204,14 @@ describe('ActsBmsKitTest', function () {
...
@@ -189,10 +204,14 @@ describe('ActsBmsKitTest', function () {
}
else
if
(
err
.
code
!=
0
)
{
}
else
if
(
err
.
code
!=
0
)
{
console
.
log
(
'
call function level is:
'
+
count
);
console
.
log
(
'
call function level is:
'
+
count
);
expect
().
assertFail
();
expect
().
assertFail
();
done
()
;
flag
=
false
;
}
}
count
++
;
count
++
;
});
});
if
(
!
flag
)
{
done
();
break
;
}
}
}
})
})
function
checkModuleUsageRecord
(
data
,
caseName
)
{
function
checkModuleUsageRecord
(
data
,
caseName
)
{
...
...
appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/ActsBmsModuleUsageRecordTest.test.js
浏览文件 @
7add6e99
...
@@ -24,7 +24,7 @@ const BUNDLE_NAME = 'com.example.third1';
...
@@ -24,7 +24,7 @@ const BUNDLE_NAME = 'com.example.third1';
const
NUM_TWO
=
2
;
const
NUM_TWO
=
2
;
const
NUM_TEN
=
10
;
const
NUM_TEN
=
10
;
const
INVALID_NUM
=
-
1
;
const
INVALID_NUM
=
-
1
;
const
START_ABILITY_TIMEOUT
=
3
000
;
const
START_ABILITY_TIMEOUT
=
5
000
;
const
START_RECORD
=
900
;
const
START_RECORD
=
900
;
const
TIMEOUT
=
3000
;
const
TIMEOUT
=
3000
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录