Home
last modified time | relevance | path

Searched full:arr1 (Results 1 – 25 of 114) sorted by relevance

12345

/arkcompiler/ets_runtime/test/moduletest/arraystablecheck/
Darraystablecheck.js22 let arr1 = new Array(1023); variable
24 print(ArkTools.isStableJsArray(arr1));
36 let arr1 = new Array(1023); variable
38 arr1.__proto__ = arr2;
39 print(ArkTools.isStableJsArray(arr1));
48 let arr1 = new Array(1026); variable
50 print(ArkTools.isStableJsArray(arr1));
62 let arr1 = new MyArray(1023); variable
64 let arr3 = arr1.concat(arr2);
66 print(ArkTools.isStableJsArray(arr1));
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Darray-object.sts17 let arr1: Int[] = [1,2,3,4,5];
19 let object_array: Object[] = arr1 as Object[];
20 let object: Object = arr1 as Object;
23 // arr1.toString();
30 // arr1.$_hashCode();
36 assert(arr1 == arr1);
37 assert(arr1 == object_array);
38 assert(arr1 == object);
39 assert(arr1 != arr2);
Dreadonly_parameter_test_4.sts17 function foo1 (tuple1: [number, string, boolean], arr1: number[]) {
18 let arr2 = arr1 as readonly number[]
19 let arr3 = arr1 as Readonly<number[]>
26 let arr1 : int[] = [1, 2]
27 let arr2 = arr1 as readonly int[]
28 let arr3 = arr1 as Readonly<int[]>
DSpreadExpressionsforFunctionCall_tuple.sts33 let arr1 = [...a./*xxxxx*/foo(), ...foo()]
34 assert(arr1.length == 5)
35 assert(arr1[0] == 7)
36 assert(arr1[1] == "a")
37 assert(arr1[2] == true)
38 assert(arr1[3] == "b")
39 assert(arr1[4] == 1)
DSpreadExpressionsforFunctionCall.sts33 let arr1:Int[] = [...a.foo(), ...foo()]
34 assert(arr1.length == 3)
35 assert(arr1[0] == 7)
36 assert(arr1[1] == 1)
37 assert(arr1[2] == 2)
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dlda.const.yaml42 lda.const v0, arr1
45 - values: ['.array arr1']
46 - values: ['.array arr1 i32']
47 - values: ['.array arr1 i32 4']
50 - values: ['.array arr1 i32 4 { }']
51 - values: ['.array arr1 i32 4 { 1 }']
52 - values: ['.array arr1 i32 4 { 1 2 3 4 5 }']
53 - values: ['.array arr1 i32 0 { }']
54 - values: ['.array arr1 i32[] 1 { 1 }']
55 - values: ['.array arr1 panda.String 1 { }']
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dlda.const.yaml42 lda.const v0, arr1
45 - values: ['.array arr1']
46 - values: ['.array arr1 i32']
47 - values: ['.array arr1 i32 4']
50 - values: ['.array arr1 i32 4 { }']
51 - values: ['.array arr1 i32 4 { 1 }']
52 - values: ['.array arr1 i32 4 { 1 2 3 4 5 }']
53 - values: ['.array arr1 i32 0 { }']
54 - values: ['.array arr1 i32[] 1 { 1 }']
55 - values: ['.array arr1 panda.String 1 { }']
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/escompat/array_js_suites/
Dtest_splice.js46 let arr1 = CreateEtsSample(); variable
47 arr1.push('spliced');
48 ASSERT_EQ(etsArrLen(arr1), EXPECT_3);
51 arr1.splice(1);
52 ASSERT_EQ(arr1.at(0), 123);
53 ASSERT_EQ(arr1.length, 1);
/arkcompiler/ets_runtime/test/moduletest/arrayfindlast/
Darrayfindlast.js79 let arr1 = [1, 2, , 7, , undefined]; variable
80 arr1.__proto__.push(9);
81 arr1.__proto__.push(9);
82 arr1.__proto__.push(9);
86 print(arr1.findLast(fun1));
87 arr1.__proto__.pop(9);
88 arr1.__proto__.pop(9);
89 arr1.__proto__.pop(9);
/arkcompiler/ets_runtime/test/moduletest/arrayfillproto/
Darrayfillproto.js21 let arr1 = new Array(500); variable
22 arr1.__proto__.length = 10;
23 arr1.__proto__.fill(233, 0, 7);
25 let arr3 = arr1.concat(arr2);
/arkcompiler/ets_runtime/test/moduletest/arrayconcat/
Darrayconcat.js65 let arr1 = new Array(2000); variable
66 arr1[0] = 1;
67 arr1[1] = 1;
69 arr2.__proto__ = arr1;
85 let arr1 = new Array(10); variable
86 arr1[0] = 1;
87 arr1[1] = 1;
89 arr2.__proto__ = arr1;
105 let arr1 = new Array(2000); variable
106 arr1[0] = 1;
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DListUtil.spec.ts81 let arr1 = undefined; variable
84 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2);
89 let arr1 = ['1', '2', '3']; variable
94 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2);
102 let arr1 = ['1', '2', '3', '4']; variable
107 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2);
115 let arr1 = undefined; variable
119 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2, arr3);
124 let arr1 = ['1', '2', '3']; variable
130 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2, arr3);
[all …]
/arkcompiler/ets_runtime/test/moduletest/arrayjoin/
Darrayjoin.js59 var arr1 = [1];
60 arr1.push(arr1);
61 arr1.push(arr1);
62 print(arr1.toString());
63 print(arr1.toString());
/arkcompiler/ets_runtime/test/moduletest/arraypushproto/
Darraypushproto.js21 let arr1 = new Array(500); variable
22 arr1.__proto__.push(1);
24 let arr3 = arr1.concat(arr2);
/arkcompiler/ets_frontend/arkguard/test/grammar/array_validation/
Dreadonly_array.ts21 let arr1 = arr as number[]; variable
23 arr1[0] = 0;
25 assert(arr1[0] === 0, 'success');
/arkcompiler/ets_runtime/test/moduletest/arrayunshiftproto/
Darrayunshiftproto.js21 let arr1 = new Array(500); variable
22 arr1.__proto__.unshift(1);
24 let arr3 = arr1.concat(arr2);
/arkcompiler/ets_runtime/test/aottest/typedarray_load_store/
Dtypedarray_load_store.ts60 let arr1 = new Int32Array(buffer, 20, 4); variable
62 IntegerArray(arr1);
64 …dArray constructed from ArrayBuffer with byteOffset = 28 and length = 5, intersecting with arr1. */
107 let arr1 = new Float64Array(buffer, 16, 4); variable
109 FloatArray(arr1);
111 …dArray constructed from ArrayBuffer with byteOffset = 24 and length = 5, intersecting with arr1. */
116 …onstructed from ArrayBuffer with byteOffset = 0 and length = 5, intersecting with arr1 and arr2. */
/arkcompiler/ets_runtime/test/moduletest/arrayspliceproto/
Darrayspliceproto.js21 let arr1 = new Array(500); variable
22 arr1.__proto__.splice(1, 0, 1, 2, 3);
24 let arr3 = arr1.concat(arr2);
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/Array/FindFindIndex/
DbuiltinArrayFindFindIndex.ts134 let arr1 = [1, 2]
140 print(arr1.find(x => x == 1)); //: 1
146 let arr1 = [1, 2]
152 print(arr1.findIndex(x => x == 1)); //: 0
162 let arr1 = [1, 2]
172 print(arr1.find(x => x == 1)); //: 1
177 let arr1 = [1, 2]
187 print(arr1.findIndex(x => x == 1)); //: 0
234 let arr1 = [1, 2]
244 print(arr1.find(x => x == 1)); //: 1
[all …]
/arkcompiler/ets_runtime/test/aottest/array_concat/
Darray_concat.ts17 let arr1 = [];
20 let arr4 = arr1.concat(arr2);
23 let arr7 = arr1.concat();
/arkcompiler/ets_runtime/test/moduletest/addelementinternal/
Daddelementinternal.js22 let arr1 = {x:1,y:3}; variable
26 arr1[i] = `value ${i}`;
31 print(arr1[i]);
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/Array/Filter/
DbuiltinArrayFilter.ts99 let arr1 = [1, 2]
105 print(arr1.filter(x => x == 1)); //: 1
114 let arr1 = [1, 2]
124 print(arr1.filter(x => x == 1)); //: 1
151 let arr1 = [1, 2]
162 print(arr1.filter(x => x == 1)); //: 1
172 let arr1 = [1, 2]
179 print(arr1.filter(x => x == 1)); //: true
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/Array/Pop/
DbuiltinArrayPop.ts112 let arr1 = [1, 2]
118 print(arr1.pop()); //: 2
127 let arr1 = [1, 2]
137 print(arr1.pop(1)); //: 2
164 let arr1 = [1, 2]
175 print(arr1.pop(1)); //: 2
184 let arr1 = [1, 2]
189 print(arr1.pop(1)); //: 1
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/Array/ForEach/
DbuiltinArrayForEach.ts106 let arr1 = [1, 2]
112 print(arr1.forEach(x => x == 1)); //: undefined
121 let arr1 = [1, 2]
131 print(arr1.forEach(x => x == 1)); //: undefined
158 let arr1 = [1, 2]
169 print(arr1.forEach(x => x == 1)); //: undefined
179 let arr1 = [1, 2]
185 print(arr1.forEach(x => x == 1)); //: undefined
/arkcompiler/ets_runtime/test/moduletest/objecthasownproperty/
Dobjecthasownproperty.js57 var arr1 = new Array(4); variable
58 print(arr1.new1);
59 print(arr1.hasOwnProperty("0"));
60 print(arr1.hasOwnProperty("new1"));

12345