Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8cff2785
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看板
提交
8cff2785
编写于
3月 20, 2023
作者:
Y
yanglifeng1217
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<modified>
Signed-off-by:
N
yanglifeng1217
<
yanglifeng5@huawei.com
>
上级
227708fc
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
405 addition
and
289 deletion
+405
-289
distributeddatamgr/dataObjectjstest/hap/src/main/js/test/ObjectStoreJsunit.test.js
...jectjstest/hap/src/main/js/test/ObjectStoreJsunit.test.js
+163
-128
distributeddatamgr/dataObjectjstest/hap/src/main/js/test/ObjectStoreJsunitV9.test.js
...ctjstest/hap/src/main/js/test/ObjectStoreJsunitV9.test.js
+235
-155
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreDistributedJsunit.test.js
...src/main/js/test/RelationalStoreDistributedJsunit.test.js
+7
-6
未找到文件。
distributeddatamgr/dataObjectjstest/hap/src/main/js/test/ObjectStoreJsunit.test.js
浏览文件 @
8cff2785
此差异已折叠。
点击以展开。
distributeddatamgr/dataObjectjstest/hap/src/main/js/test/ObjectStoreJsunitV9.test.js
浏览文件 @
8cff2785
此差异已折叠。
点击以展开。
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreDistributedJsunit.test.js
浏览文件 @
8cff2785
...
...
@@ -17,6 +17,7 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
import
data_Rdb
from
'
@ohos.data.relationalStore
'
;
import
ability_featureAbility
from
'
@ohos.ability.featureAbility
'
;
const
ERRCODE
=
801
;
var
context
=
ability_featureAbility
.
getContext
();
var
sqlStatement
=
"
CREATE TABLE IF NOT EXISTS employee (
"
+
"
id INTEGER PRIMARY KEY AUTOINCREMENT,
"
+
...
...
@@ -100,8 +101,8 @@ describe('relationalStoreDistributedTest', function () {
console
.
info
(
TAG
+
"
set none to be distributed table success
"
);
expect
(
rdbStore
).
assertEqual
(
rdbStore
)
}
catch
(
err
)
{
console
.
info
(
TAG
+
"
set
none to be distributed table failed
"
);
expect
(
null
).
assertFail
(
);
console
.
info
(
TAG
+
"
set
Distributed002 failed
"
+
`, error code is
${
err
.
code
}
, message is
${
err
.
message
}
`
);
expect
(
err
.
code
).
assertEqual
(
ERRCODE
);
}
done
()
console
.
info
(
TAG
+
"
************* testRdbStoreDistributed002 end *************
"
);
...
...
@@ -119,8 +120,8 @@ describe('relationalStoreDistributedTest', function () {
console
.
info
(
TAG
+
"
set employee to be distributed table success
"
);
expect
(
rdbStore
).
assertEqual
(
rdbStore
)
}
catch
(
err
)
{
console
.
info
(
TAG
+
"
set
employee to be distributed table failed
"
);
expect
(
null
).
assertFail
(
);
console
.
info
(
TAG
+
"
set
Distributed003 failed
"
+
`, error code is
${
err
.
code
}
, message is
${
err
.
message
}
`
);
expect
(
err
.
code
).
assertEqual
(
ERRCODE
);
}
done
()
console
.
info
(
TAG
+
"
************* testRdbStoreDistributed003 end *************
"
);
...
...
@@ -138,8 +139,8 @@ describe('relationalStoreDistributedTest', function () {
console
.
info
(
TAG
+
"
set employee and product to be distributed table success
"
);
expect
(
rdbStore
).
assertEqual
(
rdbStore
)
}
catch
(
err
)
{
console
.
info
(
TAG
+
"
set
employee and product to be distributed table failed
"
);
expect
(
null
).
assertFail
(
);
console
.
info
(
TAG
+
"
set
Distributed004 failed
"
+
`, error code is
${
err
.
code
}
, message is
${
err
.
message
}
`
);
expect
(
err
.
code
).
assertEqual
(
ERRCODE
);
}
done
()
console
.
info
(
TAG
+
"
************* testRdbStoreDistributed004 end *************
"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录