Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f6d4f06a
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看板
提交
f6d4f06a
编写于
10月 21, 2021
作者:
S
smagicyun
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix test case error.
Signed-off-by:
N
smagicyun
<
yanghongliang.yang@huawei.com
>
上级
b52cd769
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
226 addition
and
225 deletion
+226
-225
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataAbilityPredicatesJsunit.test.js
.../main/js/default/test/DataAbilityPredicatesJsunit.test.js
+214
-213
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/List.test.js
...ppdatamgrjstest/hap/src/main/js/default/test/List.test.js
+1
-1
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js
.../src/main/js/default/test/RdbStoreResultSetJsunit.test.js
+1
-1
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJsunit.test.js
...src/main/js/default/test/RdbstorePredicatesJsunit.test.js
+8
-8
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageHelperJsunit.test.js
.../hap/src/main/js/default/test/StorageHelperJsunit.test.js
+1
-1
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageSyncJsunit.test.js
...st/hap/src/main/js/default/test/StorageSyncJsunit.test.js
+1
-1
未找到文件。
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/DataAbilityPredicatesJsunit.test.js
浏览文件 @
f6d4f06a
此差异已折叠。
点击以展开。
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/List.test.js
浏览文件 @
f6d4f06a
...
...
@@ -13,9 +13,9 @@
* limitations under the License.
*/
require
(
'
./StorageHelperJsunit.test.js
'
)
require
(
'
./StorageSyncJsunit.test.js
'
)
require
(
'
./StoragePromiseJsunit.test.js
'
)
require
(
'
./StorageCallBackJsunit.test.js
'
)
require
(
'
./StorageSyncJsunit.test.js
'
)
require
(
'
./RdbstoreInsertJsunit.test.js
'
)
require
(
'
./RdbstoreDeleteJsunit.test.js
'
)
require
(
'
./RdbStoreResultSetJsunit.test.js
'
)
...
...
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbStoreResultSetJsunit.test.js
浏览文件 @
f6d4f06a
...
...
@@ -1529,7 +1529,7 @@ describe('rdbResultSetTest', function () {
let
resultSet
=
await
rdbStore
.
query
(
predicates
)
{
resultSet
.
goToRow
(
5
)
expect
(
fals
e
).
assertEqual
(
resultSet
.
isColumnNull
(
1
))
expect
(
tru
e
).
assertEqual
(
resultSet
.
isColumnNull
(
1
))
}
resultSet
=
null
;
done
();
...
...
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/RdbstorePredicatesJsunit.test.js
浏览文件 @
f6d4f06a
...
...
@@ -31,7 +31,7 @@ const STORE_CONFIG = {
}
var
rdbStore
=
undefined
;
var
context
=
undefined
;
var
DOUBLE_MAX
=
9223372036854775807
;
describe
(
'
rdbPredicatesTest
'
,
function
()
{
beforeAll
(
async
function
()
{
console
.
info
(
TAG
+
'
beforeAll
'
)
...
...
@@ -74,7 +74,7 @@ describe('rdbPredicatesTest', function () {
var
u8
=
new
Uint8Array
([
1
,
2
,
3
])
const
valueBucket
=
{
"
integerValue
"
:
2147483647
,
"
doubleValue
"
:
Number
.
MAX_VALUE
,
"
doubleValue
"
:
DOUBLE_MAX
,
"
booleanValue
"
:
true
,
"
floatValue
"
:
-
0.123
,
"
longValue
"
:
9223372036854775807
,
...
...
@@ -193,7 +193,7 @@ describe('rdbPredicatesTest', function () {
console
.
log
(
TAG
+
"
************* testEqualTo0004 start *************
"
);
{
let
predicates
=
await
new
ohos_data_rdb
.
RdbPredicates
(
"
AllDataType
"
);
predicates
.
equalTo
(
"
doubleValue
"
,
Number
.
MAX_VALUE
);
predicates
.
equalTo
(
"
doubleValue
"
,
DOUBLE_MAX
);
let
result
=
await
rdbStore
.
query
(
predicates
);
expect
(
1
).
assertEqual
(
result
.
rowCount
);
result
=
null
...
...
@@ -339,7 +339,7 @@ describe('rdbPredicatesTest', function () {
console
.
log
(
TAG
+
"
************* testNotEqualTo0004 start *************
"
);
{
let
predicates
=
await
new
ohos_data_rdb
.
RdbPredicates
(
"
AllDataType
"
);
predicates
.
notEqualTo
(
"
doubleValue
"
,
Number
.
MAX_VALUE
);
predicates
.
notEqualTo
(
"
doubleValue
"
,
DOUBLE_MAX
);
let
result
=
await
rdbStore
.
query
(
predicates
);
expect
(
2
).
assertEqual
(
result
.
rowCount
);
result
=
null
...
...
@@ -1007,7 +1007,7 @@ describe('rdbPredicatesTest', function () {
console
.
log
(
TAG
+
"
************* testBetween0002 start *************
"
);
{
let
predicates
=
await
new
ohos_data_rdb
.
RdbPredicates
(
"
AllDataType
"
);
predicates
.
between
(
"
doubleValue
"
,
0.0
,
Number
.
MAX_VALUE
);
predicates
.
between
(
"
doubleValue
"
,
0.0
,
DOUBLE_MAX
);
let
result
=
await
rdbStore
.
query
(
predicates
);
expect
(
3
).
assertEqual
(
result
.
rowCount
);
result
=
null
...
...
@@ -1079,7 +1079,7 @@ describe('rdbPredicatesTest', function () {
console
.
log
(
TAG
+
"
************* testBetween0006 start *************
"
);
{
let
predicates
=
await
new
ohos_data_rdb
.
RdbPredicates
(
"
AllDataType
"
);
predicates
.
between
(
"
doubleValue
"
,
Number
.
MAX_VALUE
,
Number
.
MAX_VALUE
);
predicates
.
between
(
"
doubleValue
"
,
DOUBLE_MAX
,
DOUBLE_MAX
);
let
result
=
await
rdbStore
.
query
(
predicates
);
expect
(
1
).
assertEqual
(
result
.
rowCount
);
result
=
null
...
...
@@ -1844,7 +1844,7 @@ describe('rdbPredicatesTest', function () {
*/
it
(
'
testIn0003
'
,
0
,
async
function
(
done
)
{
console
.
log
(
TAG
+
"
************* testIn0003 start *************
"
);
var
values
=
[
Number
.
MAX_VALUE
.
toString
()];
var
values
=
[
DOUBLE_MAX
.
toString
()];
let
predicates
=
await
new
ohos_data_rdb
.
RdbPredicates
(
"
AllDataType
"
);
predicates
.
in
(
"
doubleValue
"
,
values
);
let
result
=
await
rdbStore
.
query
(
predicates
);
...
...
@@ -1860,7 +1860,7 @@ describe('rdbPredicatesTest', function () {
*/
it
(
'
testIn0004
'
,
0
,
async
function
(
done
)
{
console
.
log
(
TAG
+
"
************* testIn0004 start *************
"
);
var
values
=
[
Number
.
MIN_VALUE
.
toString
(),
"
1.0
"
,
Number
.
MAX_VALUE
.
toString
()];
var
values
=
[
Number
.
MIN_VALUE
.
toString
(),
"
1.0
"
,
DOUBLE_MAX
.
toString
()];
let
predicates
=
await
new
ohos_data_rdb
.
RdbPredicates
(
"
AllDataType
"
);
predicates
.
in
(
"
doubleValue
"
,
values
);
let
result
=
await
rdbStore
.
query
(
predicates
);
...
...
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageHelperJsunit.test.js
浏览文件 @
f6d4f06a
...
...
@@ -76,7 +76,7 @@ describe('storageTest', function () {
expect
(
null
).
assertFail
();
}
var
value
=
mPref
.
getSync
(
'
test
'
,
0
);
expect
(
value
).
assertEqual
(
0
);
expect
(
value
).
assertEqual
(
2
);
})
/**
...
...
distributeddatamgr/appdatamgrjstest/hap/src/main/js/default/test/StorageSyncJsunit.test.js
浏览文件 @
f6d4f06a
...
...
@@ -50,7 +50,7 @@ describe('storageTest', function () {
* @tc.desc Constructor test
*/
it
(
'
testConstructor002
'
,
0
,
function
()
{
expect
(
mPref
).
assert
InstanceOf
(
'
Object
'
);
expect
(
mPref
).
assert
Equal
(
'
[object Object]
'
);
})
/**
...
...
鸿蒙社区
@harmonycommunity
mentioned in commit
4256d082
·
10月 23, 2021
mentioned in commit
4256d082
mentioned in commit 4256d0827c65a0dd4e8d0950a88620697dfc69d3
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录