Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
9302e233
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看板
未验证
提交
9302e233
编写于
8月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5072 solve ACTS_OnOff_0100 failed problem
Merge pull request !5072 from zhoujun62/my_xts_acts
上级
c26e32c0
270ad1a5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
1 addition
and
52 deletion
+1
-52
ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/test/DataAbilityHelperJsSt.test.js
...cessortest/src/main/js/test/DataAbilityHelperJsSt.test.js
+1
-52
未找到文件。
ability/ability_runtime/actsfwkdataaccessortest/actsfwkdataaccessortest/src/main/js/test/DataAbilityHelperJsSt.test.js
浏览文件 @
9302e233
...
@@ -345,14 +345,6 @@ describe('ActsDataAbilityHelperTest', function () {
...
@@ -345,14 +345,6 @@ describe('ActsDataAbilityHelperTest', function () {
console
.
log
(
'
Insert_0700 DAHelper ====<:
'
+
JSON
.
stringify
(
DAHelper
)
+
"
,
"
+
DAHelper
)
console
.
log
(
'
Insert_0700 DAHelper ====<:
'
+
JSON
.
stringify
(
DAHelper
)
+
"
,
"
+
DAHelper
)
var
currentAlertTimeout
;
var
currentAlertTimeout
;
try
{
try
{
function
onAsyncCallbackInsert0700
(
err
)
{
clearTimeout
(
currentAlertTimeout
);
expect
(
err
.
code
).
assertEqual
(
0
);
console
.
log
(
'
ACTS_Insert_0700====<onAsyncCallbackInsert0700
'
);
DAHelper
.
off
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackInsert0700
);
done
();
}
DAHelper
.
on
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackInsert0700
);
DAHelper
.
insert
(
dataAbilityUri
,
valueBucket
)
DAHelper
.
insert
(
dataAbilityUri
,
valueBucket
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
console
.
debug
(
"
=ACTS_Insert_0700 then data====>
"
console
.
debug
(
"
=ACTS_Insert_0700 then data====>
"
...
@@ -389,14 +381,6 @@ describe('ActsDataAbilityHelperTest', function () {
...
@@ -389,14 +381,6 @@ describe('ActsDataAbilityHelperTest', function () {
console
.
log
(
'
featureAbility getDataAbilityHelper ====>:
'
+
DAHelper
)
console
.
log
(
'
featureAbility getDataAbilityHelper ====>:
'
+
DAHelper
)
var
currentAlertTimeout
;
var
currentAlertTimeout
;
try
{
try
{
function
onAsyncCallbackInsert0800
(
err
)
{
clearTimeout
(
currentAlertTimeout
);
expect
(
err
.
code
).
assertEqual
(
0
);
console
.
log
(
'
ACTS_Insert_0800====<onAsyncCallbackInsert0800
'
);
DAHelper
.
off
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackInsert0800
);
done
();
}
DAHelper
.
on
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackInsert0800
);
await
DAHelper
.
insert
(
dataAbilityUri
,
valueBucket
,
await
DAHelper
.
insert
(
dataAbilityUri
,
valueBucket
,
(
err
,
data
)
=>
{
(
err
,
data
)
=>
{
console
.
debug
(
"
=ACTS_Insert_0800 err,data=======>
"
console
.
debug
(
"
=ACTS_Insert_0800 err,data=======>
"
...
@@ -1909,15 +1893,6 @@ describe('ActsDataAbilityHelperTest', function () {
...
@@ -1909,15 +1893,6 @@ describe('ActsDataAbilityHelperTest', function () {
console
.
log
(
'
featureAbility Update getDataAbilityHelper ====>:
'
+
DAHelper
)
console
.
log
(
'
featureAbility Update getDataAbilityHelper ====>:
'
+
DAHelper
)
var
currentAlertTimeout
;
var
currentAlertTimeout
;
try
{
try
{
function
onAsyncCallbackUpdate0700
(
err
)
{
expect
(
err
.
code
).
assertEqual
(
0
);
clearTimeout
(
currentAlertTimeout
);
console
.
log
(
'
ACTS_Update_0700====<onAsyncCallbackUpdate0700
'
);
DAHelper
.
off
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackUpdate0700
);
console
.
log
(
'
ACTS_Update_0700====<end
'
);
done
();
}
DAHelper
.
on
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackUpdate0700
);
let
predicates
=
new
ohosDataAbility
.
DataAbilityPredicates
();
let
predicates
=
new
ohosDataAbility
.
DataAbilityPredicates
();
predicates
.
equalTo
(
'
contact_id
'
,
1
);
predicates
.
equalTo
(
'
contact_id
'
,
1
);
predicates
.
limitAs
(
10
);
predicates
.
limitAs
(
10
);
...
@@ -1963,15 +1938,6 @@ describe('ActsDataAbilityHelperTest', function () {
...
@@ -1963,15 +1938,6 @@ describe('ActsDataAbilityHelperTest', function () {
console
.
log
(
'
featureAbility Update getDataAbilityHelper ====>:
'
+
DAHelper
)
console
.
log
(
'
featureAbility Update getDataAbilityHelper ====>:
'
+
DAHelper
)
var
currentAlertTimeout
;
var
currentAlertTimeout
;
try
{
try
{
function
onAsyncCallbackUpdate0800
(
err
)
{
expect
(
err
.
code
).
assertEqual
(
0
);
clearTimeout
(
currentAlertTimeout
);
console
.
log
(
'
ACTS_Update_0800====<onAsyncCallbackUpdate0800
'
);
DAHelper
.
off
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackUpdate0800
);
console
.
log
(
'
ACTS_Update_0800====<end
'
);
done
();
}
DAHelper
.
on
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackUpdate0800
);
let
predicates
=
new
ohosDataAbility
.
DataAbilityPredicates
();
let
predicates
=
new
ohosDataAbility
.
DataAbilityPredicates
();
predicates
.
equalTo
(
'
contact_id
'
,
1
);
predicates
.
equalTo
(
'
contact_id
'
,
1
);
predicates
.
limitAs
(
10
);
predicates
.
limitAs
(
10
);
...
@@ -2466,15 +2432,6 @@ describe('ActsDataAbilityHelperTest', function () {
...
@@ -2466,15 +2432,6 @@ describe('ActsDataAbilityHelperTest', function () {
console
.
log
(
'
ACTS_Delete_0700====<begin
'
);
console
.
log
(
'
ACTS_Delete_0700====<begin
'
);
var
currentAlertTimeout
;
var
currentAlertTimeout
;
try
{
try
{
function
onAsyncCallbackDelete0700
(
err
)
{
expect
(
err
.
code
).
assertEqual
(
0
);
clearTimeout
(
currentAlertTimeout
);
console
.
log
(
'
ACTS_Delete_0700====<onAsyncCallbackDelete0700
'
);
DAHelper
.
off
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackDelete0700
);
console
.
log
(
'
ACTS_Delete_0700====<end
'
);
done
();
}
DAHelper
.
on
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackDelete0700
);
let
predicates
=
new
ohosDataAbility
.
DataAbilityPredicates
();
let
predicates
=
new
ohosDataAbility
.
DataAbilityPredicates
();
predicates
.
equalTo
(
'
contact_id
'
,
1
);
predicates
.
equalTo
(
'
contact_id
'
,
1
);
predicates
.
limitAs
(
10
);
predicates
.
limitAs
(
10
);
...
@@ -2519,15 +2476,6 @@ describe('ActsDataAbilityHelperTest', function () {
...
@@ -2519,15 +2476,6 @@ describe('ActsDataAbilityHelperTest', function () {
console
.
log
(
'
featureAbility getDataAbilityHelper ====>:
'
+
DAHelper
)
console
.
log
(
'
featureAbility getDataAbilityHelper ====>:
'
+
DAHelper
)
var
currentAlertTimeout
;
var
currentAlertTimeout
;
try
{
try
{
function
onAsyncCallbackDelete0800
(
err
)
{
expect
(
err
.
code
).
assertEqual
(
0
);
clearTimeout
(
currentAlertTimeout
);
console
.
log
(
'
ACTS_Delete_0800====<onAsyncCallbackDelete0800
'
);
DAHelper
.
off
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackDelete0800
);
console
.
log
(
'
ACTS_Delete_0800====<end
'
);
done
();
}
DAHelper
.
on
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallbackDelete0800
);
let
predicates
=
new
ohosDataAbility
.
DataAbilityPredicates
();
let
predicates
=
new
ohosDataAbility
.
DataAbilityPredicates
();
predicates
.
equalTo
(
'
contact_id
'
,
1
);
predicates
.
equalTo
(
'
contact_id
'
,
1
);
predicates
.
limitAs
(
10
);
predicates
.
limitAs
(
10
);
...
@@ -5087,6 +5035,7 @@ describe('ActsDataAbilityHelperTest', function () {
...
@@ -5087,6 +5035,7 @@ describe('ActsDataAbilityHelperTest', function () {
gSetTimeout
=
500
;
gSetTimeout
=
500
;
done
();
done
();
}
}
DAHelper
.
off
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallback0100
);
DAHelper
.
on
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallback0100
);
DAHelper
.
on
(
"
dataChange
"
,
dataAbilityUri
,
onAsyncCallback0100
);
setTimeout
(
mySetTimeout
,
gSetTimeout
);
setTimeout
(
mySetTimeout
,
gSetTimeout
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录