Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f0e10bf5
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看板
未验证
提交
f0e10bf5
编写于
7月 28, 2023
作者:
O
openharmony_ci
提交者:
Gitee
7月 28, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9537 【distributeddatamgr】【4.0 Beta2】rdb Statistic.success 修改为Statistic.successful
Merge pull request !9537 from wuxiaodan/OpenHarmony-4.0-Beta2
上级
587002bd
0f5f4c29
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
9 deletion
+11
-9
distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/test/relationalStoreCloudSyncEts.test.ets
...ry/src/main/ets/test/relationalStoreCloudSyncEts.test.ets
+6
-6
distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/test/relationalStoreEmit.test.ets
...test/entry/src/main/ets/test/relationalStoreEmit.test.ets
+5
-3
未找到文件。
distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/test/relationalStoreCloudSyncEts.test.ets
浏览文件 @
f0e10bf5
...
...
@@ -245,9 +245,9 @@ export default function relationalStoreCloudSyncEtsTest(context) {
it('testRdbStoreStatistic0010', 0, async function (done) {
console.log(TAG + "************* testRdbStoreStatistic0010 start *************");
try {
let statistic1 : relationalStore.Statistic = {"total":10, "success":6, "failed":3, "remained":1};
let statistic1 : relationalStore.Statistic = {"total":10, "success
ful
":6, "failed":3, "remained":1};
expect(statistic1.total == 10 ).assertTrue();
expect(statistic1.success == 6 ).assertTrue();
expect(statistic1.success
ful
== 6 ).assertTrue();
expect(statistic1.failed == 3 ).assertTrue();
expect(statistic1.remained == 1 ).assertTrue();
done();
...
...
@@ -267,8 +267,8 @@ export default function relationalStoreCloudSyncEtsTest(context) {
it('testRdbStoreTableDetails0010', 0, async function (done) {
console.log(TAG + "************* testRdbStoreTableDetails0010 start *************");
try {
let statistic1 : relationalStore.Statistic = {"total":10, "success":6, "failed":3, "remained":1};
let statistic2 : relationalStore.Statistic = {"total":100, "success":60, "failed":30, "remained":10};
let statistic1 : relationalStore.Statistic = {"total":10, "success
ful
":6, "failed":3, "remained":1};
let statistic2 : relationalStore.Statistic = {"total":100, "success
ful
":60, "failed":30, "remained":10};
let tableDetail : relationalStore.TableDetails = {"upload": statistic1, "download": statistic2};
expect(tableDetail.upload == statistic1 ).assertTrue();
...
...
@@ -315,8 +315,8 @@ export default function relationalStoreCloudSyncEtsTest(context) {
it('testRdbStoreProgressDetails0010', 0, async function (done) {
console.log(TAG + "************* testRdbStoreProgressDetails0010 start *************");
try {
let statistic1 : relationalStore.Statistic = {"total":10, "success":6, "failed":3, "remained":1};
let statistic2 : relationalStore.Statistic = {"total":100, "success":60, "failed":30, "remained":10};
let statistic1 : relationalStore.Statistic = {"total":10, "success
ful
":6, "failed":3, "remained":1};
let statistic2 : relationalStore.Statistic = {"total":100, "success
ful
":60, "failed":30, "remained":10};
let tableDetail : relationalStore.TableDetails = {"upload": statistic1, "download": statistic2};
let tableName = "cloud_text";
let progressDetail : relationalStore.ProgressDetails = {"schedule":2,"code":0,"details":{ [tableName]:tableDetail}};
...
...
distributeddatamgr/relationalStoretest/relationalStoreStagetest/entry/src/main/ets/test/relationalStoreEmit.test.ets
浏览文件 @
f0e10bf5
...
...
@@ -73,13 +73,15 @@ export default function relationalStoreEmitTest() {
}
try
{
await
rdbStore
.
on
(
'storeObserverInsert'
,
false
,
subscribeInsert
);
await
rdbStore
.
emit
(
'storeObserverInsert'
);
rdbStore
.
on
(
'storeObserverInsert'
,
false
,
subscribeInsert
);
rdbStore
.
emit
(
'storeObserverInsert'
);
await
sleep
(
2000
);
let
resultSet
=
await
rdbStore
.
querySql
(
"SELECT * FROM test"
);
console
.
info
(
TAG
+
"resultSet = "
+
resultSet
.
rowCount
);
expect
(
1
)
.
assertEqual
(
resultSet
.
rowCount
);
rdbStore
.
off
(
'storeObserverInsert'
,
false
,
subscribeInsert
);
resultSet
.
close
();
resultSet
=
null
;
done
();
}
catch
(
err
)
{
console
.
error
(
`failed, code is ${err.code},message is ${err.message}`
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录