Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
cef5d3ad
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看板
提交
cef5d3ad
编写于
8月 24, 2023
作者:
L
lixinyi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xts_distributeddatamgr
Signed-off-by:
N
lixinyi
<
lixinyi38@huawei.com
>
上级
2ab037b5
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
6 deletion
+8
-6
distributeddatamgr/crossplatform/preferencesetstest/src/main/ets/test/PreferencesCallBack.test.ets
...cesetstest/src/main/ets/test/PreferencesCallBack.test.ets
+3
-3
distributeddatamgr/preferencesjstest/hap/src/main/js/test/StoragePromiseJsunit.test.js
...sjstest/hap/src/main/js/test/StoragePromiseJsunit.test.js
+1
-1
distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstoreInsertJsunit.test.js
...bJstest/hap/src/main/js/test/RdbstoreInsertJsunit.test.js
+1
-1
distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstoreRdbstoreJsunit.test.js
...stest/hap/src/main/js/test/RdbstoreRdbstoreJsunit.test.js
+1
-0
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreInsertJsunit.test.js
.../hap/src/main/js/test/RelationalStoreInsertJsunit.test.js
+1
-1
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreQuery.test.js
...eJstest/hap/src/main/js/test/RelationalStoreQuery.test.js
+1
-0
未找到文件。
distributeddatamgr/crossplatform/preferencesetstest/src/main/ets/test/PreferencesCallBack.test.ets
浏览文件 @
cef5d3ad
...
...
@@ -89,7 +89,7 @@ export default function preferencesCallBackTest() {
});
} catch (err) {
console.info("testPreferencesGetPreferences002 fail: " + err.message + "code: " + err.code);
expect(err.code === "401"
&& err.message === "Parameter error. The type of 'name' must be a without path non empty string."
).assertTrue();
expect(err.code === "401").assertTrue();
done();
}
});
...
...
@@ -145,7 +145,7 @@ export default function preferencesCallBackTest() {
});
} catch (err) {
console.info("testPreferencesDeletePreferences001 fail: " + err.message + "code: " + err.code);
expect(err.code === "401"
&& err.message === "Parameter error. The type of 'name' must be a without path non empty string."
).assertTrue();
expect(err.code === "401").assertTrue();
done();
}
}
...
...
@@ -239,7 +239,7 @@ export default function preferencesCallBackTest() {
});
} catch (err) {
console.info("testRemovePreferencesFromCache001 fail: " + err.message + "code: " + err.code);
expect(err.code === "401"
&& err.message === "Parameter error. The type of 'name' must be a without path non empty string."
).assertTrue();
expect(err.code === "401").assertTrue();
done();
}
}
...
...
distributeddatamgr/preferencesjstest/hap/src/main/js/test/StoragePromiseJsunit.test.js
浏览文件 @
cef5d3ad
...
...
@@ -26,7 +26,7 @@ const MAX_VALUE_LENGTH = 'y'.repeat(8192)
var
mPref
;
export
default
function
storagePromiseTest
()
{
describe
(
'
storagePromiseTest
'
,
function
()
{
describe
(
'
storagePromiseTest
'
,
function
(
done
)
{
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll
'
)
const
promise
=
storage
.
getStorage
(
PATH
);
...
...
distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstoreInsertJsunit.test.js
浏览文件 @
cef5d3ad
...
...
@@ -36,7 +36,7 @@ describe('rdbstoreInsertTest', function () {
console
.
info
(
TAG
+
'
beforeAll
'
)
rdbStore
=
await
dataRdb
.
getRdbStore
(
STORE_CONFIG
,
1
);
await
rdbStore
.
executeSql
(
CREATE_TABLE_TEST
,
null
)
await
rdbStore
.
executeSql
(
CREATE_TABLE_BATCHINSERT_TEST
,
null
);
})
beforeEach
(
async
function
()
{
...
...
distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstoreRdbstoreJsunit.test.js
浏览文件 @
cef5d3ad
...
...
@@ -19,6 +19,7 @@ import abilityFeatureAbility from '@ohos.ability.featureAbility';
var
context
=
abilityFeatureAbility
.
getContext
();
var
contextApplication
=
context
.
getApplicationContext
()
var
rdbStore
=
undefined
;
const
TAG
=
"
[RDB_JSKITS_TEST]
"
const
CREATE_TABLE_TEST
=
"
CREATE TABLE IF NOT EXISTS test (
"
+
"
id INTEGER PRIMARY KEY AUTOINCREMENT,
"
+
"
name TEXT NOT NULL,
"
+
"
age INTEGER,
"
+
"
salary REAL,
"
+
"
blobType BLOB)
"
;
...
...
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreInsertJsunit.test.js
浏览文件 @
cef5d3ad
...
...
@@ -39,7 +39,7 @@ describe('relationalStoreInsertTest', function () {
console
.
info
(
TAG
+
'
beforeAll
'
)
rdbStore
=
await
data_Rdb
.
getRdbStore
(
context
,
STORE_CONFIG
);
await
rdbStore
.
executeSql
(
CREATE_TABLE_TEST
,
null
)
await
rdbStore
.
executeSql
(
CREATE_TABLE_BATCHINSERT_TEST
,
null
);
})
beforeEach
(
async
function
()
{
...
...
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreQuery.test.js
浏览文件 @
cef5d3ad
...
...
@@ -25,6 +25,7 @@ const STORE_CONFIG = {
securityLevel
:
data_Rdb
.
SecurityLevel
.
S1
}
const
TEST_BUNDLE_NAME
=
"
ohos.acts.relationalstorejstest
"
const
TEST_STORE_ID
=
"
storeId
"
;
var
kvManager
=
null
var
kvStore
=
null
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录