Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
54d12054
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看板
未验证
提交
54d12054
编写于
8月 27, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 27, 2022
浏览文件
操作
浏览文件
下载
差异文件
!5249 Supplementary types remaining interface
Merge pull request !5249 from 王景悟/master
上级
b777bfce
89b61cf5
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
104 addition
and
15 deletion
+104
-15
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
+104
-15
未找到文件。
commonlibrary/ets_utils/util_lib_standard/src/main/js/test/util.test.js
浏览文件 @
54d12054
...
@@ -5310,6 +5310,50 @@ describe('TypesTest', function() {
...
@@ -5310,6 +5310,50 @@ describe('TypesTest', function() {
* @tc.author: wangjingwu
* @tc.author: wangjingwu
*/
*/
it
(
'
testIsBigInt64Array001
'
,
0
,
function
()
{
it
(
'
testIsBigInt64Array001
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigInt64Array
(
new
BigInt64Array
([]));
expect
(
result
).
assertEqual
(
true
);
})
/**
* @tc.name: testIsBigInt64Array002
* @tc.desc: Check whether the entered value is of bigint64array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigInt64Array002
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigInt64Array
(
new
Int32Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigInt64Array003
* @tc.desc: Check whether the entered value is of bigint64array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigInt64Array003
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigInt64Array
(
new
Uint8Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigInt64Array004
* @tc.desc: Check whether the entered value is of bigint64array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigInt64Array004
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigInt64Array
(
new
Float64Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigInt64Array005
* @tc.desc: Check whether the entered value is of bigint64array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigInt64Array005
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigInt64Array
(
new
Int8Array
([]));
var
result
=
proc
.
isBigInt64Array
(
new
Int8Array
([]));
expect
(
result
).
assertEqual
(
false
);
expect
(
result
).
assertEqual
(
false
);
...
@@ -5321,11 +5365,67 @@ describe('TypesTest', function() {
...
@@ -5321,11 +5365,67 @@ describe('TypesTest', function() {
* @tc.author: wangjingwu
* @tc.author: wangjingwu
*/
*/
it
(
'
testIsBigUint64Array001
'
,
0
,
function
()
{
it
(
'
testIsBigUint64Array001
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
BigUint64Array
([]));
expect
(
result
).
assertEqual
(
true
);
})
/**
* @tc.name: testIsBigUint64Array002
* @tc.desc: Check whether the entered value is of biguint64array array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigUint64Array002
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
Int8Array
([]));
var
result
=
proc
.
isBigUint64Array
(
new
Int8Array
([]));
expect
(
result
).
assertEqual
(
false
);
expect
(
result
).
assertEqual
(
false
);
})
})
/**
* @tc.name: testIsBigUint64Array002
* @tc.desc: Check whether the entered value is of biguint64array array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigUint64Array002
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
Float64Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigUint64Array003
* @tc.desc: Check whether the entered value is of biguint64array array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigUint64Array003
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
Uint8Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigUint64Array004
* @tc.desc: Check whether the entered value is of biguint64array array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigUint64Array004
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
BigInt64Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
* @tc.name: testIsBigUint64Array005
* @tc.desc: Check whether the entered value is of biguint64array array array type.
* @tc.author: wangjingwu
*/
it
(
'
testIsBigUint64Array005
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isBigUint64Array
(
new
Int8Array
([]));
expect
(
result
).
assertEqual
(
false
);
})
/**
/**
* @tc.name: testIsBooleanObject001
* @tc.name: testIsBooleanObject001
* @tc.desc: Check whether the entered value is a Boolean object type.
* @tc.desc: Check whether the entered value is a Boolean object type.
...
@@ -5554,9 +5654,8 @@ describe('TypesTest', function() {
...
@@ -5554,9 +5654,8 @@ describe('TypesTest', function() {
*/
*/
it
(
'
testIsExternal001
'
,
0
,
function
()
{
it
(
'
testIsExternal001
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
proc
=
new
util
.
types
();
const
data
=
util
.
createExternalType
();
var
result
=
proc
.
isExternal
(
new
Float32Array
());
var
result
=
proc
.
isExternal
(
data
);
expect
(
result
).
assertEqual
(
false
);
expect
(
result
).
assertEqual
(
true
);
})
})
/**
/**
...
@@ -6081,16 +6180,6 @@ describe('TypesTest', function() {
...
@@ -6081,16 +6180,6 @@ describe('TypesTest', function() {
expect
(
result
).
assertEqual
(
false
);
expect
(
result
).
assertEqual
(
false
);
})
})
/**
* @tc.name: testIsModuleNamespaceObject001
* @tc.desc: Check whether the entered value is the module namespace object object type.
* @tc.author: bihu
*/
it
(
'
testIsModuleNamespaceObject001
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isModuleNamespaceObject
(
util
);
expect
(
result
).
assertEqual
(
false
);
})
/**
/**
* @tc.name: testIsModuleNamespaceObject002
* @tc.name: testIsModuleNamespaceObject002
...
@@ -6557,8 +6646,8 @@ describe('TypesTest', function() {
...
@@ -6557,8 +6646,8 @@ describe('TypesTest', function() {
*/
*/
it
(
'
testIsSharedArrayBuffer001
'
,
0
,
function
()
{
it
(
'
testIsSharedArrayBuffer001
'
,
0
,
function
()
{
var
proc
=
new
util
.
types
();
var
proc
=
new
util
.
types
();
var
result
=
proc
.
isSharedArrayBuffer
(
new
Int8Array
([]));
var
result
=
proc
.
isSharedArrayBuffer
(
new
SharedArrayBuffer
([]));
expect
(
result
).
assertEqual
(
fals
e
);
expect
(
result
).
assertEqual
(
tru
e
);
})
})
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录