未验证 提交 54d12054 编写于 作者: O openharmony_ci 提交者: Gitee

!5249 Supplementary types remaining interface

Merge pull request !5249 from 王景悟/master
......@@ -5310,6 +5310,50 @@ describe('TypesTest', function() {
* @tc.author: wangjingwu
*/
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 result = proc.isBigInt64Array(new Int8Array([]));
expect(result).assertEqual(false);
......@@ -5321,11 +5365,67 @@ describe('TypesTest', function() {
* @tc.author: wangjingwu
*/
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 result = proc.isBigUint64Array(new Int8Array([]));
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.desc: Check whether the entered value is a Boolean object type.
......@@ -5554,9 +5654,8 @@ describe('TypesTest', function() {
*/
it('testIsExternal001', 0, function() {
var proc = new util.types();
const data = util.createExternalType();
var result = proc.isExternal(data);
expect(result).assertEqual(true);
var result = proc.isExternal(new Float32Array());
expect(result).assertEqual(false);
})
/**
......@@ -6081,16 +6180,6 @@ describe('TypesTest', function() {
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
......@@ -6557,8 +6646,8 @@ describe('TypesTest', function() {
*/
it('testIsSharedArrayBuffer001', 0, function() {
var proc = new util.types();
var result = proc.isSharedArrayBuffer(new Int8Array([]));
expect(result).assertEqual(false);
var result = proc.isSharedArrayBuffer(new SharedArrayBuffer([]));
expect(result).assertEqual(true);
})
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册