Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
432e2016
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看板
未验证
提交
432e2016
编写于
6月 14, 2023
作者:
O
openharmony_ci
提交者:
Gitee
6月 14, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9001 更改ets_utils部分模块xts用例名称重复问题
Merge pull request !9001 from 赵杜炜/master
上级
c617ad84
efd4e656
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
37 addition
and
37 deletion
+37
-37
commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js
...lib_standard/entry/src/main/ets/test/ThreadWorker.test.js
+8
-8
commonlibrary/ets_utils/url_lib_standard/src/main/js/test/url.test.js
...y/ets_utils/url_lib_standard/src/main/js/test/url.test.js
+1
-1
commonlibrary/ets_utils/util2_lib_standard/src/main/js/test/util.test.js
...ts_utils/util2_lib_standard/src/main/js/test/util.test.js
+10
-10
commonlibrary/ets_utils/util_lib_standard/src/main/js/test/util.test.js
...ets_utils/util_lib_standard/src/main/js/test/util.test.js
+18
-18
未找到文件。
commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/main/ets/test/ThreadWorker.test.js
浏览文件 @
432e2016
...
...
@@ -1542,10 +1542,10 @@ describe('threadWorkerTest', function () {
// check worker removeAllListener function is ok
/**
* @tc.name: threadWorker_removeListener_test_00
3
* @tc.name: threadWorker_removeListener_test_00
4
* @tc.desc: Removes an event defined for the worker when throw error.
*/
it
(
'
threadWorker_removeListener_test_00
3
'
,
0
,
async
function
(
done
)
{
it
(
'
threadWorker_removeListener_test_00
4
'
,
0
,
async
function
(
done
)
{
let
ss
=
new
worker
.
ThreadWorker
(
"
entry/ets/workers/newworker.js
"
)
let
zhangSanTimes
=
0
...
...
@@ -1572,10 +1572,10 @@ describe('threadWorkerTest', function () {
// check worker removeAllListener function is ok
/**
* @tc.name: threadWorker_removeListener_test_00
4
* @tc.name: threadWorker_removeListener_test_00
5
* @tc.desc: Removes an event defined for the worker when throw error.
*/
it
(
'
threadWorker_removeListener_test_00
4
'
,
0
,
async
function
(
done
)
{
it
(
'
threadWorker_removeListener_test_00
5
'
,
0
,
async
function
(
done
)
{
let
ss
=
new
worker
.
ThreadWorker
(
"
entry/ets/workers/newworker.js
"
)
let
zhangSanTimes
=
0
...
...
@@ -1602,10 +1602,10 @@ describe('threadWorkerTest', function () {
// check worker removeAllListener function is ok
/**
* @tc.name: threadWorker_removeListener_test_00
5
* @tc.name: threadWorker_removeListener_test_00
6
* @tc.desc: Removes an event defined for the worker when throw error.
*/
it
(
'
threadWorker_removeListener_test_00
5
'
,
0
,
async
function
(
done
)
{
it
(
'
threadWorker_removeListener_test_00
6
'
,
0
,
async
function
(
done
)
{
let
ss
=
new
worker
.
ThreadWorker
(
"
entry/ets/workers/newworker.js
"
)
let
zhangSanTimes
=
0
...
...
@@ -1632,10 +1632,10 @@ describe('threadWorkerTest', function () {
// check worker removeAllListener function is ok
/**
* @tc.name: threadWorker_removeListener_test_00
6
* @tc.name: threadWorker_removeListener_test_00
7
* @tc.desc: Removes an event defined for the worker when throw error.
*/
it
(
'
threadWorker_removeListener_test_00
6
'
,
0
,
async
function
(
done
)
{
it
(
'
threadWorker_removeListener_test_00
7
'
,
0
,
async
function
(
done
)
{
let
ss
=
new
worker
.
ThreadWorker
(
"
entry/ets/workers/newworker.js
"
)
let
zhangSanTimes
=
0
...
...
commonlibrary/ets_utils/url_lib_standard/src/main/js/test/url.test.js
浏览文件 @
432e2016
...
...
@@ -544,7 +544,7 @@ describe('UrlFunTest', function () {
* @tc.name: testParamsGet006
* @tc.desc: get throw BusinessError: Parameter error.
*/
it
(
'
testParamsGet00
5
'
,
0
,
function
()
{
it
(
'
testParamsGet00
6
'
,
0
,
function
()
{
try
{
let
params
=
new
Url
.
URLParams
(
"
key1=value1&key2=value2
"
)
params
.
append
(
"
jss
"
,
"
JL
"
)
...
...
commonlibrary/ets_utils/util2_lib_standard/src/main/js/test/util.test.js
浏览文件 @
432e2016
...
...
@@ -4210,11 +4210,11 @@ describe('Base64HelperTest', function () {
//base64 EncodeAsync test
/**
* @tc.name: test_encode
S
ync_base64_001
* @tc.name: test_encode
As
ync_base64_001
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly
allocated u8 array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_001
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_001
'
,
0
,
async
function
()
{
var
that
=
await
new
util
.
Base64Helper
();
var
array
=
new
Uint8Array
([
115
,
49
,
51
]);
var
rarray
=
new
Uint8Array
([
99
,
122
,
69
,
122
]);
...
...
@@ -4226,11 +4226,11 @@ describe('Base64HelperTest', function () {
})
/**
* @tc.name: test_encode
S
ync_base64_002
* @tc.name: test_encode
As
ync_base64_002
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly
allocated u8 array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_002
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_002
'
,
0
,
async
function
()
{
var
that
=
new
util
.
Base64Helper
()
var
array
=
new
Uint8Array
([
66
,
97
,
115
,
101
,
54
,
52
,
32
,
78
,
111
,
100
,
101
,
46
,
106
,
115
]);
var
rarray
=
new
Uint8Array
([
81
,
109
,
70
,
122
,
90
,
84
,
89
,
48
,
73
,
69
,
53
,
118
,
90
,
71
,
85
,
117
,
97
,
110
,
77
,
61
]);
...
...
@@ -4242,11 +4242,11 @@ describe('Base64HelperTest', function () {
})
/**
* @tc.name: test_encode
S
ync_base64_003
* @tc.name: test_encode
As
ync_base64_003
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8
array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_003
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_003
'
,
0
,
async
function
()
{
var
that
=
new
util
.
Base64Helper
()
var
array
=
new
Uint8Array
([
66
,
97
,
115
,
101
,
54
,
52
,
32
,
69
,
110
,
99
,
111
,
100
,
105
,
110
,
103
,
32
,
105
,
110
,
32
,
78
,
111
,
100
,
101
,
46
,
106
,
115
]);
...
...
@@ -4260,11 +4260,11 @@ describe('Base64HelperTest', function () {
})
/**
* @tc.name: test_encode
S
ync_base64_004
* @tc.name: test_encode
As
ync_base64_004
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8
array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_004
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_004
'
,
0
,
async
function
()
{
var
that
=
new
util
.
Base64Helper
()
var
array
=
new
Uint8Array
([
168
,
174
,
155
,
255
]);
var
rarray
=
new
Uint8Array
([
113
,
75
,
54
,
98
,
47
,
119
,
61
,
61
]);
...
...
@@ -4276,11 +4276,11 @@ describe('Base64HelperTest', function () {
})
/**
* @tc.name: test_encode
S
ync_base64_005
* @tc.name: test_encode
As
ync_base64_005
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8
array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_005
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_005
'
,
0
,
async
function
()
{
var
that
=
new
util
.
Base64Helper
()
var
array
=
new
Uint8Array
([
66
,
97
,
115
,
101
,
54
,
52
]);
var
rarray
=
new
Uint8Array
([
81
,
109
,
70
,
122
,
90
,
84
,
89
,
48
]);
...
...
commonlibrary/ets_utils/util_lib_standard/src/main/js/test/util.test.js
浏览文件 @
432e2016
...
...
@@ -2217,11 +2217,11 @@ describe('Base64Test', function () {
//base64 EncodeAsync test
/**
* @tc.name: test_encode
S
ync_base64_001
* @tc.name: test_encode
As
ync_base64_001
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly
allocated u8 array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_001
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_001
'
,
0
,
async
function
()
{
var
that
=
await
new
util
.
Base64
();
var
array
=
new
Uint8Array
([
115
,
49
,
51
]);
var
rarray
=
new
Uint8Array
([
99
,
122
,
69
,
122
]);
...
...
@@ -2233,11 +2233,11 @@ describe('Base64Test', function () {
})
/**
* @tc.name: test_encode
S
ync_base64_002
* @tc.name: test_encode
As
ync_base64_002
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly
allocated u8 array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_002
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_002
'
,
0
,
async
function
()
{
var
that
=
new
util
.
Base64
()
var
array
=
new
Uint8Array
([
66
,
97
,
115
,
101
,
54
,
52
,
32
,
78
,
111
,
100
,
101
,
46
,
106
,
115
]);
var
rarray
=
new
Uint8Array
([
81
,
109
,
70
,
122
,
90
,
84
,
89
,
48
,
73
,
69
,
53
,
118
,
90
,
71
,
85
,
117
,
97
,
110
,
77
,
61
]);
...
...
@@ -2249,11 +2249,11 @@ describe('Base64Test', function () {
})
/**
* @tc.name: test_encode
S
ync_base64_003
* @tc.name: test_encode
As
ync_base64_003
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8
array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_003
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_003
'
,
0
,
async
function
()
{
var
that
=
new
util
.
Base64
()
var
array
=
new
Uint8Array
([
66
,
97
,
115
,
101
,
54
,
52
,
32
,
69
,
110
,
99
,
111
,
100
,
105
,
110
,
103
,
32
,
105
,
110
,
32
,
78
,
111
,
100
,
101
,
46
,
106
,
115
]);
...
...
@@ -2267,11 +2267,11 @@ describe('Base64Test', function () {
})
/**
* @tc.name: test_encode
S
ync_base64_004
* @tc.name: test_encode
As
ync_base64_004
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8
array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_004
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_004
'
,
0
,
async
function
()
{
var
that
=
new
util
.
Base64
()
var
array
=
new
Uint8Array
([
168
,
174
,
155
,
255
]);
var
rarray
=
new
Uint8Array
([
113
,
75
,
54
,
98
,
47
,
119
,
61
,
61
]);
...
...
@@ -2283,11 +2283,11 @@ describe('Base64Test', function () {
})
/**
* @tc.name: test_encode
S
ync_base64_005
* @tc.name: test_encode
As
ync_base64_005
* @tc.desc: Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8
array using the Base64 encoding scheme.
*/
it
(
'
test_encode
S
ync_base64_005
'
,
0
,
async
function
()
{
it
(
'
test_encode
As
ync_base64_005
'
,
0
,
async
function
()
{
var
that
=
new
util
.
Base64
()
var
array
=
new
Uint8Array
([
66
,
97
,
115
,
101
,
54
,
52
]);
var
rarray
=
new
Uint8Array
([
81
,
109
,
70
,
122
,
90
,
84
,
89
,
48
]);
...
...
@@ -5223,40 +5223,40 @@ describe('TypesTest', function() {
})
/**
* @tc.name: testIsBigUint64Array00
2
* @tc.name: testIsBigUint64Array00
3
* @tc.desc: Check whether the entered value is of biguint64array array array type.
*/
it
(
'
testIsBigUint64Array00
2
'
,
0
,
function
()
{
it
(
'
testIsBigUint64Array00
3
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
Float64Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigUint64Array00
3
* @tc.name: testIsBigUint64Array00
4
* @tc.desc: Check whether the entered value is of biguint64array array array type.
*/
it
(
'
testIsBigUint64Array00
3
'
,
0
,
function
()
{
it
(
'
testIsBigUint64Array00
4
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
Uint8Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigUint64Array00
4
* @tc.name: testIsBigUint64Array00
5
* @tc.desc: Check whether the entered value is of biguint64array array array type.
*/
it
(
'
testIsBigUint64Array00
4
'
,
0
,
function
()
{
it
(
'
testIsBigUint64Array00
5
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
BigInt64Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigUint64Array00
5
* @tc.name: testIsBigUint64Array00
6
* @tc.desc: Check whether the entered value is of biguint64array array array type.
*/
it
(
'
testIsBigUint64Array00
5
'
,
0
,
function
()
{
it
(
'
testIsBigUint64Array00
6
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
Int8Array
([]));
expect
(
result
).
assertEqual
(
false
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录