1# Copyright (c) 2024 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14Start bindErrorTest
15call boundAt fail. err: BusinessError: The at method cannot be bound., errCode: 10200011
16Call boundConcat fail. err: BusinessError: The concat method cannot be bound., errCode: 10200011
17Call boundEntries failed. err: BusinessError: The entries method cannot be bound., errCode: 10200011
18Call boundFill failed. err: BusinessError: The fill method cannot be bound., errCode: 10200011
19Call boundFilter failed. err: BusinessError: The filter method cannot be bound., errCode: 10200011
20Call boundFind failed. err: BusinessError: The find method cannot be bound., errCode: 10200011
21Call boundFindIndex failed. err: BusinessError: The findIndex method cannot be bound., errCode: 10200011
22Call boundForEach failed. err: BusinessError: The forEach method cannot be bound., errCode: 10200011
23Call boundIndexOf failed. err: BusinessError: The indexOf method cannot be bound., errCode: 10200011
24Call boundJoin failed. err: BusinessError: The join method cannot be bound., errCode: 10200011
25Call boundKeys failed. err: BusinessError: The keys method cannot be bound., errCode: 10200011
26Call boundMap failed. err: BusinessError: The map method cannot be bound., errCode: 10200011
27Call boundPop failed. err: BusinessError: The pop method cannot be bound., errCode: 10200011
28Call boundPush failed. err: BusinessError: The push method cannot be bound., errCode: 10200011
29Call boundReduce failed. err: BusinessError: The reduce method cannot be bound., errCode: 10200011
30Call boundShift failed. err: BusinessError: The shift method cannot be bound., errCode: 10200011
31Call boundSlice failed. err: BusinessError: The slice method cannot be bound., errCode: 10200011
32Call boundSort failed. err: BusinessError: The sort method cannot be bound., errCode: 10200011
33Call boundToString failed. err: BusinessError: The toString method cannot be bound., errCode: 10200011
34Call boundUnshift failed. err: BusinessError: The unshift method cannot be bound., errCode: 10200011
35Call boundValues failed. err: BusinessError: The values method cannot be bound., errCode: 10200011
36Call boundIncludes failed. err: BusinessError: The includes method cannot be bound., errCode: 10200011
37Call boundShrinkTo failed. err: BusinessError: Parameter error.Not enough parameter., errCode: 401
38Call boundExtendTo failed. err: BusinessError: Parameter error.Not enough parameters., errCode: 401
39Start Test SendableMap
40Start map bindErrorTest
41Call boundClear failed. err: BusinessError: The clear method cannot be bound., errCode: 10200011
42Call boundDelete failed. err: BusinessError: The delete method cannot be bound., errCode: 10200011
43Call boundEntries failed. err: BusinessError: The entries method cannot be bound., errCode: 10200011
44Call boundForEach failed. err: BusinessError: The forEach method cannot be bound., errCode: 10200011
45Call boundGet failed. err: BusinessError: The get method cannot be bound., errCode: 10200011
46Call boundHas failed. err: BusinessError: The has method cannot be bound., errCode: 10200011
47Call boundKeys failed. err: BusinessError: The keys method cannot be bound., errCode: 10200011
48Call boundSet failed. err: BusinessError: The set method cannot be bound., errCode: 10200011
49Call boundValues failed. err: BusinessError: The values method cannot be bound., errCode: 10200011
50Start Test SendableSet
51Start set bindErrorTest
52Call boundAdd failed. err: BusinessError: The add method cannot be bound., errCode: 10200011
53Call boundClear failed. err: BusinessError: The clear method cannot be bound., errCode: 10200011
54Call boundDelete failed. err: BusinessError: The delete method cannot be bound., errCode: 10200011
55Call boundEntries failed. err: BusinessError: The entries method cannot be bound., errCode: 10200011
56Call boundForEach failed. err: BusinessError: The forEach method cannot be bound., errCode: 10200011
57Call boundHas failed. err: BusinessError: The has method cannot be bound., errCode: 10200011
58Call boundValues failed. err: BusinessError: The values method cannot be bound., errCode: 10200011
59Start Test SendableArray
60Start createErrorTest
61Init with small first element: -1 success.
62Init with big first element: 0xffff success.
63Init exceed max length success.
64Create with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
65Start fromErrorTest
66Create from non-sendable iterator fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
67Create from non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
68Create from mapper: non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
69Start atErrorTest
70at invalid index success: 5
71Start concatErrorTest
72concat with non-sendable array fail.err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
73concat with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
74Start Test fillErrorTest
75fill array with non-sendable object and position fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
76fill array with non-sendable object and start position fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
77fill array with non-sendable object fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
78Start mapErrorTest
79map array with non-sendable fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
80Start pushErrorTest
81push array with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
82Start Test unshiftErrorTest
83unshift array with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
84Start staticCreateErrorTest
85Static create from non-sendable initialValue fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
86Start Test extendToErrorTest
87extendTo array with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable value., errCode: 401
88Start directCallConstructor
89direct call SendableArray ctor with empty fail. err: BusinessError: The ArkTS Array's constructor cannot be directly invoked., errCode: 10200012
90direct call SendableArray ctor with length fail. err: BusinessError: The ArkTS Array's constructor cannot be directly invoked., errCode: 10200012
91direct call SendableArray ctor with elements fail. err: BusinessError: The ArkTS Array's constructor cannot be directly invoked., errCode: 10200012
92Start map directCallConstructor
93direct call SendableMap ctor with empty fail. err: BusinessError: The ArkTS Map's constructor cannot be directly invoked., errCode: 10200012
94direct call SendableMap ctor with length fail. err: BusinessError: The ArkTS Map's constructor cannot be directly invoked., errCode: 10200012
95direct call SendableMap ctor with elements fail. err: BusinessError: The ArkTS Map's constructor cannot be directly invoked., errCode: 10200012
96Start set directCallConstructor
97direct call SendableSet ctor with empty fail. err: BusinessError: The ArkTS Set's constructor cannot be directly invoked., errCode: 10200012
98direct call SendableSet ctor with length fail. err: BusinessError: The ArkTS Set's constructor cannot be directly invoked., errCode: 10200012
99direct call SendableSet ctor with elements fail. err: BusinessError: The ArkTS Set's constructor cannot be directly invoked., errCode: 10200012
100add element while iterate array fail. err: BusinessError: Concurrent modification exception, errCode: 10200201
101pop element while iterate array fail. err: BusinessError: Concurrent modification exception, errCode: 10200201
102shrink while iterate array fail. err: BusinessError: Concurrent modification exception, errCode: 10200201
103extend while iterate array fail. err: BusinessError: Concurrent modification exception, errCode: 10200201
104