Home
last modified time | relevance | path

Searched full:verify (Results 1 – 25 of 665) sorted by relevance

12345678910>>...27

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/attempt_invalid_type_conversion/
Dattemp_invalid_type_conversion_only_compile.params.yaml16 …- desc: Verify that attempting to cast a readonly property to a mutable property results in a type…
25 - desc: Verify that attempting to cast a function to a number results in a type error.
31 - desc: Verify that attempting to cast a boolean to a number results in a type error.
37 - desc: Verify that attempting to cast null to a number results in a type error.
43 - desc: Verify that attempting to cast a string to a number results in a type error.
49 - desc: Verify that directly assigning a number to a string variable results in a type error.
55 - desc: Verify that attempting to cast a number to a string results in a type error.
61 - desc: Verify that attempting to cast a class instance to a number results in a type error.
67 - desc: Verify that attempting to cast a class instance to a number results in a type error.
73 - desc: Verify that attempting to cast an array to a string results in a type error.
Dattemp_invalid_type_conversion.params.yaml16 - desc: Verify that using JSON.stringify() correctly converts an array to a string.
23 - desc: Verify that converting an empty string to a number results in 0.
30 …- desc: Verify that converting a non-empty string to a boolean using the Boolean() function correc…
37 - desc: Verify that using String() constructor correctly converts a number to a string.
44 - desc: Verify that using parseFloat() correctly converts a string to a number.
51 - desc: Verify that attempting to cast a readonly number[] to a number[] results in a type error.
60 - desc: Verify that using toString() correctly converts an array to a string.
67 - desc: Verify that using parseInt() correctly converts a string to a number.
74 - desc: Verify that using String() constructor correctly converts an array to a string.
81 - desc: Verify that using template literals correctly converts an array to a string.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/types/
DIsBigUint64ArrayTest.ets21 suite.addTest("Verify BigUint64Array is identified as BigUint64Array", testIsBigUint64Array001)
22 suite.addTest("Verify Int8Array is not identified as BigUint64Array", testIsBigUint64Array002)
23 … suite.addTest("Verify Float64Array is not identified as BigUint64Array", testIsBigUint64Array003)
24 suite.addTest("Verify Uint8Array is not identified as BigUint64Array", testIsBigUint64Array004)
25 … suite.addTest("Verify BigInt64Array is not identified as BigUint64Array", testIsBigUint64Array005)
26 suite.addTest("Verify Int8Array is not identified as BigUint64Array", testIsBigUint64Array006)
34 * @tc.desc: Verify BigUint64Array is identified as BigUint64Array
47 * @tc.desc: Verify Int8Array is not identified as BigUint64Array
60 * @tc.desc: Verify Float64Array is not identified as BigUint64Array
73 * @tc.desc: Verify Uint8Array is not identified as BigUint64Array
[all …]
DIsTypedArrayTest.ets21 suite.addTest("Verify Float64Array is a TypedArray", testIsTypedArray001)
22 suite.addTest("Verify Uint8Array is a TypedArray", testIsTypedArray002)
23 suite.addTest("Verify Uint16Array is a TypedArray", testIsTypedArray003)
24 suite.addTest("Verify Uint32Array is a TypedArray", testIsTypedArray004)
25 suite.addTest("Verify ArrayBuffer is not a TypedArray", testIsTypedArray005)
33 * @tc.desc: Verify Float64Array is a TypedArray
47 * @tc.desc: Verify Uint8Array is a TypedArray
61 * @tc.desc: Verify Uint16Array is a TypedArray
75 * @tc.desc: Verify Uint32Array is a TypedArray
89 * @tc.desc: Verify ArrayBuffer is not a TypedArray
DIsMapIteratorTest.ets21 suite.addTest("Verify Map.keys() is identified as MapIterator", testIsMapIterator001)
22 suite.addTest("Verify Map.values() is identified as MapIterator", testIsMapIterator002)
23 suite.addTest("Verify Map.entries() is identified as MapIterator", testIsMapIterator003)
24 suite.addTest("Verify Map.$_iterator() is identified as MapIterator", testIsMapIterator004)
25 suite.addTest("Verify Map is not identified as MapIterator", testIsMapIterator005)
26 suite.addTest("Verify Array is not identified as MapIterator", testIsMapIterator006)
34 * @tc.desc: Verify Map.keys() is identified as MapIterator
48 * @tc.desc: Verify Map.values() is identified as MapIterator
62 * @tc.desc: Verify Map.entries() is identified as MapIterator
76 * @tc.desc: Verify Map.$_iterator() is identified as MapIterator
[all …]
DIsNativeErrorTest.ets21 suite.addTest("Verify TypeError is identified as NativeError", testIsNativeError001)
22 suite.addTest("Verify Error is identified as NativeError", testIsNativeError002)
23 suite.addTest("Verify RangeError is identified as NativeError", testIsNativeError003)
24 suite.addTest("Verify Boolean is not identified as NativeError", testIsNativeError004)
25 suite.addTest("Verify Boolean is not identified as NativeError", testIsNativeError005)
33 * @tc.desc: Verify TypeError is identified as NativeError
46 * @tc.desc: Verify Error is identified as NativeError
59 * @tc.desc: Verify RangeError is identified as NativeError
72 * @tc.desc: Verify Boolean is not identified as NativeError
85 * @tc.desc: Verify Boolean is not identified as NativeError
DIsFloat64ArrayTest.ets21 suite.addTest("Verify Float64Array is identified as Float64Array", testIsFloat64Array001)
22 suite.addTest("Verify Int8Array is not identified as Float64Array", testIsFloat64Array002)
23 suite.addTest("Verify Float32Array is not identified as Float64Array", testIsFloat64Array003)
24 suite.addTest("Verify Uint8Array is not identified as Float64Array", testIsFloat64Array004)
25 suite.addTest("Verify Int16Array is not identified as Float64Array", testIsFloat64Array005)
33 * @tc.desc: Verify Float64Array is identified as Float64Array
46 * @tc.desc: Verify Int8Array is not identified as Float64Array
59 * @tc.desc: Verify Float32Array is not identified as Float64Array
72 * @tc.desc: Verify Uint8Array is not identified as Float64Array
85 * @tc.desc: Verify Int16Array is not identified as Float64Array
DIsFloat32ArrayTest.ets21 suite.addTest("Verify Float32Array is identified as Float32Array", testIsFloat32Array001)
22 suite.addTest("Verify Int8Array is not identified as Float32Array", testIsFloat32Array002)
23 suite.addTest("Verify Int16Array is not identified as Float32Array", testIsFloat32Array003)
24 suite.addTest("Verify Float64Array is not identified as Float32Array", testIsFloat32Array004)
25 suite.addTest("Verify Uint8Array is not identified as Float32Array", testIsFloat32Array005)
33 * @tc.desc: Verify Float32Array is identified as Float32Array
46 * @tc.desc: Verify Int8Array is not identified as Float32Array
59 * @tc.desc: Verify Int16Array is not identified as Float32Array
72 * @tc.desc: Verify Float64Array is not identified as Float32Array
85 * @tc.desc: Verify Uint8Array is not identified as Float32Array
DIsUint16ArrayTest.ets21 suite.addTest("Verify Uint16Array is identified as Uint16Array", testIsUint16Array001)
22 suite.addTest("Verify Uint8Array is not identified as Uint16Array", testIsUint16Array002)
23 suite.addTest("Verify Uint32Array is not identified as Uint16Array", testIsUint16Array003)
24 suite.addTest("Verify Uint8ClampedArray is not identified as Uint16Array", testIsUint16Array004)
25 suite.addTest("Verify Int8Array is not identified as Uint16Array", testIsUint16Array005)
33 * @tc.desc: Verify Uint16Array is identified as Uint16Array
46 * @tc.desc: Verify Uint8Array is not identified as Uint16Array
59 * @tc.desc: Verify Uint32Array is not identified as Uint16Array
72 * @tc.desc: Verify Uint8ClampedArray is not identified as Uint16Array
85 * @tc.desc: Verify Int8Array is not identified as Uint16Array
DIsWeakMapTest.ets21 suite.addTest("Verify WeakMap is identified as WeakMap", testIsWeakMap001)
22 suite.addTest("Verify Map is not identified as WeakMap", testIsWeakMap002)
23 suite.addTest("Verify Set is not identified as WeakMap", testIsWeakMap003)
24 suite.addTest("Verify String is not identified as WeakMap", testIsWeakMap004)
25 suite.addTest("Verify WeakSet is not identified as WeakMap", testIsWeakMap005)
33 * @tc.desc: Verify WeakMap is identified as WeakMap
46 * @tc.desc: Verify Map is not identified as WeakMap
59 * @tc.desc: Verify Set is not identified as WeakMap
72 * @tc.desc: Verify String is not identified as WeakMap
85 * @tc.desc: Verify WeakSet is not identified as WeakMap
DIsInt8ArrayTest.ets21 suite.addTest("Verify Int8Array is identified as Int8Array", testIsInt8Array001)
22 suite.addTest("Verify ArrayBuffer is not identified as Int8Array", testIsInt8Array002)
23 suite.addTest("Verify Int32Array is not identified as Int8Array", testIsInt8Array003)
24 suite.addTest("Verify Float64Array is not identified as Int8Array", testIsInt8Array004)
25 suite.addTest("Verify Uint8Array is not identified as Int8Array", testIsInt8Array005)
33 * @tc.desc: Verify Int8Array is identified as Int8Array
46 * @tc.desc: Verify ArrayBuffer is not identified as Int8Array
59 * @tc.desc: Verify Int32Array is not identified as Int8Array
72 * @tc.desc: Verify Float64Array is not identified as Int8Array
85 * @tc.desc: Verify Uint8Array is not identified as Int8Array
DIsUint8ArrayTest.ets21 suite.addTest("Verify Uint8Array is identified as Uint8Array", testIsUint8Array001)
22 suite.addTest("Verify Uint16Array is not identified as Uint8Array", testIsUint8Array002)
23 suite.addTest("Verify Uint32Array is not identified as Uint8Array", testIsUint8Array003)
24 suite.addTest("Verify Int8Array is not identified as Uint8Array", testIsUint8Array004)
25 suite.addTest("Verify Int16Array is not identified as Uint8Array", testIsUint8Array005)
33 * @tc.desc: Verify Uint8Array is identified as Uint8Array
47 * @tc.desc: Verify Uint16Array is not identified as Uint8Array
60 * @tc.desc: Verify Uint32Array is not identified as Uint8Array
73 * @tc.desc: Verify Int8Array is not identified as Uint8Array
86 * @tc.desc: Verify Int16Array is not identified as Uint8Array
DIsMapTest.ets21 suite.addTest("Verify Map is identified as Map", testIsMap001)
22 suite.addTest("Verify Set is not identified as Map", testIsMap002)
23 suite.addTest("Verify String is not identified as Map", testIsMap003)
24 suite.addTest("Verify Object is not identified as Map", testIsMap004)
25 suite.addTest("Verify Boolean is not identified as Map", testIsMap005)
33 * @tc.desc: Verify Map is identified as Map
46 * @tc.desc: Verify Set is not identified as Map
59 * @tc.desc: Verify String is not identified as Map
72 * @tc.desc: Verify Object is not identified as Map
85 * @tc.desc: Verify Boolean is not identified as Map
DIsBigInt64ArrayTest.ets21 suite.addTest("Verify BigInt64Array is identified as BigInt64Array", testIsBigInt64Array001)
22 suite.addTest("Verify Int32Array is not identified as BigInt64Array", testIsBigInt64Array002)
23 suite.addTest("Verify Uint8Array is not identified as BigInt64Array", testIsBigInt64Array003)
24 suite.addTest("Verify Float64Array is not identified as BigInt64Array", testIsBigInt64Array004)
25 suite.addTest("Verify Int8Array is not identified as BigInt64Array", testIsBigInt64Array005)
33 * @tc.desc: Verify BigInt64Array is identified as BigInt64Array
46 * @tc.desc: Verify Int32Array is not identified as BigInt64Array
59 * @tc.desc: Verify Uint8Array is not identified as BigInt64Array
72 * @tc.desc: Verify Float64Array is not identified as BigInt64Array
85 * @tc.desc: Verify Int8Array is not identified as BigInt64Array
DIsWeakSetTest.ets21 suite.addTest("Verify WeakSet is identified as WeakSet", testIsWeakSet001)
22 suite.addTest("Verify WeakMap is not identified as WeakSet", testIsWeakSet002)
23 suite.addTest("Verify String is not identified as WeakSet", testIsWeakSet003)
24 suite.addTest("Verify Set is not identified as WeakSet", testIsWeakSet004)
25 suite.addTest("Verify Map is not identified as WeakSet", testIsWeakSet005)
33 * @tc.desc: Verify WeakSet is identified as WeakSet
46 * @tc.desc: Verify WeakMap is not identified as WeakSet
59 * @tc.desc: Verify String is not identified as WeakSet
72 * @tc.desc: Verify Set is not identified as WeakSet
85 * @tc.desc: Verify Map is not identified as WeakSet
DIsAnyArrayBufferTest.ets21 suite.addTest("Verify ArrayBuffer is identified as AnyArrayBuffer", testIsAnyArrayBuffer001)
22 suite.addTest("Verify Boolean is not identified as AnyArrayBuffer", testIsAnyArrayBuffer002)
23 suite.addTest("Verify Boolean is not identified as AnyArrayBuffer", testIsAnyArrayBuffer003)
24 suite.addTest("Verify ArrayBuffer is identified as AnyArrayBuffer", testIsAnyArrayBuffer004)
25 suite.addTest("Verify Boolean is not identified as AnyArrayBuffer", testIsAnyArrayBuffer005)
33 * @tc.desc: Verify ArrayBuffer is identified as AnyArrayBuffer
46 * @tc.desc: Verify Boolean is not identified as AnyArrayBuffer
59 * @tc.desc: Verify Boolean is not identified as AnyArrayBuffer
72 * @tc.desc: Verify ArrayBuffer is identified as AnyArrayBuffer
86 * @tc.desc: Verify Boolean is not identified as AnyArrayBuffer
DIsInt16ArrayTest.ets21 suite.addTest("Verify Int16Array is identified as Int16Array", testIsInt16Array001)
22 suite.addTest("Verify Int8Array is not identified as Int16Array", testIsInt16Array002)
23 suite.addTest("Verify Int32Array is not identified as Int16Array", testIsInt16Array003)
24 suite.addTest("Verify Uint8Array is not identified as Int16Array", testIsInt16Array004)
25 suite.addTest("Verify Float64Array is not identified as Int16Array", testIsInt16Array005)
33 * @tc.desc: Verify Int16Array is identified as Int16Array
46 * @tc.desc: Verify Int8Array is not identified as Int16Array
59 * @tc.desc: Verify Int32Array is not identified as Int16Array
72 * @tc.desc: Verify Uint8Array is not identified as Int16Array
85 * @tc.desc: Verify Float64Array is not identified as Int16Array
DIsRegExpTest.ets21 suite.addTest("Verify new RegExp() creates a RegExp object", testIsRegExp001)
22 suite.addTest("Verify RegExp with a string pattern", testIsRegExp002)
23 suite.addTest("Verify RegExp with another pattern", testIsRegExp003)
24 suite.addTest("Verify RegExp with numeric pattern", testIsRegExp004)
25 suite.addTest("Verify RegExp with flags", testIsRegExp005)
33 * @tc.desc: Verify new RegExp() creates a RegExp object
47 * @tc.desc: Verify RegExp with a string pattern
61 * @tc.desc: Verify RegExp with another pattern
75 * @tc.desc: Verify RegExp with numeric pattern
89 * @tc.desc: Verify RegExp with flags
DIsDateTest.ets21 suite.addTest("Verify Date is identified as Date", testIsDate001)
22 suite.addTest("Verify Int8Array is not identified as Date", testIsDate002)
23 suite.addTest("Verify Boolean is not identified as Date", testIsDate003)
24 suite.addTest("Verify Int16Array is not identified as Date", testIsDate004)
25 suite.addTest("Verify Float64Array is not identified as Date", testIsDate005)
33 * @tc.desc: Verify Date is identified as Date
46 * @tc.desc: Verify Int8Array is not identified as Date
59 * @tc.desc: Verify Boolean is not identified as Date
72 * @tc.desc: Verify Int16Array is not identified as Date
85 * @tc.desc: Verify Float64Array is not identified as Date
DIsArrayBufferViewTest.ets21 suite.addTest("Verify Int8Array is identified as ArrayBufferView", testIsArrayBufferView001)
22 suite.addTest("Verify Int32Array is identified as ArrayBufferView", testIsArrayBufferView002)
23 suite.addTest("Verify DataView is identified as ArrayBufferView", testIsArrayBufferView003)
24 suite.addTest("Verify Boolean is not identified as ArrayBufferView", testIsArrayBufferView004)
25 suite.addTest("Verify Int16Array is identified as ArrayBufferView", testIsArrayBufferView005)
33 * @tc.desc: Verify Int8Array is identified as ArrayBufferView
46 * @tc.desc: Verify Int32Array is identified as ArrayBufferView
59 * @tc.desc: Verify DataView is identified as ArrayBufferView
72 * @tc.desc: Verify Boolean is not identified as ArrayBufferView
85 * @tc.desc: Verify Int16Array is identified as ArrayBufferView
DIsUint8ClampedArrayTest.ets21 suite.addTest("Verify Uint8ClampedArray is identified correctly", testIsUint8ClampedArray001)
22 …suite.addTest("Verify Int8Array is not identified as Uint8ClampedArray", testIsUint8ClampedArray00…
23 …suite.addTest("Verify Int16Array is not identified as Uint8ClampedArray", testIsUint8ClampedArray0…
24 …suite.addTest("Verify Int32Array is not identified as Uint8ClampedArray", testIsUint8ClampedArray0…
25 …suite.addTest("Verify Uint32Array is not identified as Uint8ClampedArray", testIsUint8ClampedArray…
33 * @tc.desc: Verify Uint8ClampedArray is identified correctly
46 * @tc.desc: Verify Int8Array is not identified as Uint8ClampedArray
59 * @tc.desc: Verify Int16Array is not identified as Uint8ClampedArray
72 * @tc.desc: Verify Int32Array is not identified as Uint8ClampedArray
85 * @tc.desc: Verify Uint32Array is not identified as Uint8ClampedArray
DIsInt32ArrayTest.ets21 suite.addTest("Verify Int32Array is identified as Int32Array", testIsInt32Array001)
22 suite.addTest("Verify Int8Array is not identified as Int32Array", testIsInt32Array002)
23 suite.addTest("Verify Int16Array is not identified as Int32Array", testIsInt32Array003)
24 suite.addTest("Verify Float64Array is not identified as Int32Array", testIsInt32Array004)
25 suite.addTest("Verify Uint8Array is not identified as Int32Array", testIsInt32Array005)
33 * @tc.desc: Verify Int32Array is identified as Int32Array
46 * @tc.desc: Verify Int8Array is not identified as Int32Array
59 * @tc.desc: Verify Int16Array is not identified as Int32Array
72 * @tc.desc: Verify Float64Array is not identified as Int32Array
85 * @tc.desc: Verify Uint8Array is not identified as Int32Array
DIsSetTest.ets21 suite.addTest("Verify new Set() creates a Set object", testIsSet001)
22 suite.addTest("Verify Map is not identified as Set", testIsSet002)
23 suite.addTest("Verify String is not identified as Set", testIsSet003)
24 suite.addTest("Verify Boolean is not identified as Set", testIsSet004)
25 suite.addTest("Verify WeakSet is not identified as Set", testIsSet005)
33 * @tc.desc: Verify new Set() creates a Set object
47 * @tc.desc: Verify Map is not identified as Set
61 * @tc.desc: Verify String is not identified as Set
75 * @tc.desc: Verify Boolean is not identified as Set
89 * @tc.desc: Verify WeakSet is not identified as Set
DIsPromiseTest.ets21 suite.addTest("Verify Promise.resolve() returns a Promise", testIsPromise001)
22 suite.addTest("Verify Promise.resolve() with a different value", testIsPromise002)
23 suite.addTest("Verify Promise.resolve() with another value", testIsPromise003)
24 suite.addTest("Verify Promise.reject() returns a Promise", testIsPromise004)
25 suite.addTest("Verify Promise.reject() with a different error", testIsPromise005)
33 * @tc.desc: Verify Promise.resolve() returns a Promise
47 * @tc.desc: Verify Promise.resolve() with a different value
61 * @tc.desc: Verify Promise.resolve() with another value
75 * @tc.desc: Verify Promise.reject() returns a Promise
90 * @tc.desc: Verify Promise.reject() with a different error
DIsArrayBufferTest.ets21 suite.addTest("Verify ArrayBuffer is identified as ArrayBuffer", testIsArrayBuffer001)
22 suite.addTest("Verify Boolean is not identified as ArrayBuffer", testIsArrayBuffer002)
23 suite.addTest("Verify Boolean is not identified as ArrayBuffer", testIsArrayBuffer003)
24 suite.addTest("Verify Int8Array is not identified as ArrayBuffer", testIsArrayBuffer004)
25 suite.addTest("Verify Int16Array is not identified as ArrayBuffer", testIsArrayBuffer005)
33 * @tc.desc: Verify ArrayBuffer is identified as ArrayBuffer
46 * @tc.desc: Verify Boolean is not identified as ArrayBuffer
59 * @tc.desc: Verify Boolean is not identified as ArrayBuffer
72 * @tc.desc: Verify Int8Array is not identified as ArrayBuffer
85 * @tc.desc: Verify Int16Array is not identified as ArrayBuffer

12345678910>>...27