/arkcompiler/ets_runtime/test/moduletest/typedarrayfindlast/ |
D | typedarrayfindlast.js | 55 let result1 = obj.findLast((element, index, array) => { 58 result.push(result1 == 12); 59 result1 = obj.findLast((element, index, array) => { 62 result.push(result1 == undefined); 63 result1 = obj.findLastIndex((element, index, array) => { 69 result.push(result1 == -1); 70 result1 = obj.findLastIndex((element, index, array) => { 73 result.push(result1 == 3); 85 let result1 = obj.findLast((element, index, array) => { 88 result.push(result1 == 12n); [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_date_test.cpp | 81 [[maybe_unused]] JSTaggedValue result1 = BuiltinsDate::SetDate(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 132 JSTaggedValue result1 = BuiltinsDate::GetFullYear(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 134 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(static_cast<double>(2018)).GetRawData()); in HWTEST_F_L0() 186 JSTaggedValue result1 = BuiltinsDate::GetFullYear(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 187 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(static_cast<double>(-2019)).GetRawData()); in HWTEST_F_L0() 233 JSTaggedValue result1 = BuiltinsDate::GetHours(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 234 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(static_cast<double>(18)).GetRawData()); in HWTEST_F_L0() 287 JSTaggedValue result1 = BuiltinsDate::GetHours(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 288 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(static_cast<double>(5)).GetRawData()); in HWTEST_F_L0() 337 JSTaggedValue result1 = BuiltinsDate::SetMilliseconds(ecmaRuntimeCallInfo); in HWTEST_F_L0() local [all …]
|
D | builtins_weak_map_test.cpp | 122 JSTaggedValue result1 = BuiltinsWeakMap::WeakMapConstructor(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 123 …JSHandle<JSWeakMap> weakMap(thread, JSWeakMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRa… in HWTEST_F_L0() 141 JSTaggedValue result1 = BuiltinsWeakMap::Has(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 144 EXPECT_EQ(result1.GetRawData(), JSTaggedValue::False().GetRawData()); in HWTEST_F_L0() 184 JSTaggedValue result1 = BuiltinsWeakMap::Set(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 187 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 188 … JSWeakMap *jsWeakMap = JSWeakMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() 236 JSTaggedValue result1 = BuiltinsWeakMap::Set(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 239 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 240 … JSWeakMap *jsWeakMap = JSWeakMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0()
|
D | builtins_weak_set_test.cpp | 117 JSTaggedValue result1 = BuiltinsWeakSet::WeakSetConstructor(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 120 … JSWeakSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))); in HWTEST_F_L0() 137 JSTaggedValue result1 = BuiltinsWeakSet::Has(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 140 EXPECT_EQ(result1.GetRawData(), JSTaggedValue::False().GetRawData()); in HWTEST_F_L0() 179 JSTaggedValue result1 = BuiltinsWeakSet::Add(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 182 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 183 … JSWeakSet *jsWeakSet = JSWeakSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() 230 JSTaggedValue result1 = BuiltinsWeakSet::Add(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 233 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 234 … JSWeakSet *jsWeakSet = JSWeakSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0()
|
D | builtins_regexp_test.cpp | 108 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern, flags); in HWTEST_F_L0() local 109 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0() 143 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0() local 144 JSHandle<JSRegExp> value(thread, reinterpret_cast<JSRegExp *>(result1.GetRawData())); in HWTEST_F_L0() 178 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0() local 179 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0() 195 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0() local 196 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0() 211 JSTaggedValue result1 = CreateBuiltinsRegExpObjByPatternAndFlags(thread, pattern1, flags1); in HWTEST_F_L0() local 212 JSHandle<JSTaggedValue> result1Handle(thread, result1); in HWTEST_F_L0() [all …]
|
D | builtins_weak_ref_test.cpp | 125 JSTaggedValue result1 = BuiltinsWeakRef::Deref(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 126 ASSERT_EQ(result1, target.GetTaggedValue()); in HWTEST_F_L0() 150 JSTaggedValue result1 = BuiltinsWeakRef::Deref(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 151 ASSERT_EQ(result1, target.GetTaggedValue()); in HWTEST_F_L0() 154 ASSERT_EQ(result1, target.GetTaggedValue()); in HWTEST_F_L0() 209 JSTaggedValue result1 = BuiltinsWeakRef::WeakRefConstructor(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 211 ASSERT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 213 …JSHandle<JSWeakRef> jsWeakRef(thread, JSWeakRef::Cast(reinterpret_cast<TaggedObject *>(result1.Get… in HWTEST_F_L0()
|
D | builtins_map_test.cpp | 134 JSTaggedValue result1 = BuiltinsMap::MapConstructor(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 137 … EXPECT_EQ(JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))->GetSize(), 5); in HWTEST_F_L0() 157 JSTaggedValue result1 = BuiltinsMap::Has(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 159 EXPECT_EQ(result1.GetRawData(), JSTaggedValue::False().GetRawData()); in HWTEST_F_L0() 200 JSTaggedValue result1 = BuiltinsMap::Set(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 202 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 203 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() 242 JSTaggedValue result1 = BuiltinsMap::Set(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 245 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 246 JSMap *jsMap = JSMap::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() [all …]
|
D | builtins_set_test.cpp | 130 JSTaggedValue result1 = BuiltinsSet::SetConstructor(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 133 … EXPECT_EQ(JSSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))->GetSize(), 5); in HWTEST_F_L0() 150 JSTaggedValue result1 = BuiltinsSet::Has(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 153 EXPECT_EQ(result1.GetRawData(), JSTaggedValue::False().GetRawData()); in HWTEST_F_L0() 215 JSTaggedValue result1 = BuiltinsSet::Add(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 218 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 219 JSSet *jsSet = JSSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0() 259 JSTaggedValue result1 = BuiltinsSet::Add(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 262 EXPECT_TRUE(result1.IsECMAObject()); in HWTEST_F_L0() 263 JSSet *jsSet = JSSet::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData())); in HWTEST_F_L0()
|
D | builtins_sharedarraybuffer_test.cpp | 128 JSTaggedValue result1 = BuiltinsSharedArrayBuffer::Slice(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 131 … JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))); in HWTEST_F_L0() 221 JSTaggedValue result1 = BuiltinsSharedArrayBuffer::IsSharedArrayBuffer(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 223 ASSERT_EQ(result1, JSTaggedValue::False()); in HWTEST_F_L0() 237 bool result1 = BuiltinsSharedArrayBuffer::IsShared(arrBuf1.GetTaggedValue()); in HWTEST_F_L0() local 238 ASSERT_EQ(result1, false); in HWTEST_F_L0()
|
D | builtins_bigint_test.cpp | 207 JSTaggedValue result1 = BuiltinsBigInt::BigIntConstructor(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 210 JSHandle<BigInt> bigIntHandle(thread, result1); in HWTEST_F_L0() 247 JSTaggedValue result1 = BuiltinsBigInt::BigIntConstructor(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 250 JSHandle<BigInt> bigIntHandle(thread, result1); in HWTEST_F_L0() 282 JSTaggedValue result1 = BuiltinsBigInt::BigIntConstructor(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 285 JSHandle<BigInt> bigIntHandle(thread, result1); in HWTEST_F_L0() 312 JSTaggedValue result1 = BuiltinsBigInt::BigIntConstructor(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 315 JSHandle<BigInt> bigIntHandle(thread, result1); in HWTEST_F_L0() 342 JSTaggedValue result1 = BuiltinsBigInt::BigIntConstructor(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 345 JSHandle<BigInt> bigIntHandle(thread, result1); in HWTEST_F_L0() [all …]
|
D | builtins_dataview_test.cpp | 263 JSTaggedValue result1 = BuiltinsDataView::GetUint16(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 264 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(63488).GetRawData()); in HWTEST_F_L0() 292 JSTaggedValue result1 = BuiltinsDataView::GetInt16(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 293 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(-2048).GetRawData()); in HWTEST_F_L0() 449 JSTaggedValue result1 = BuiltinsDataView::GetUint32(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 450 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(static_cast<double>(0xf8007f90)).GetRawData()); in HWTEST_F_L0() 478 JSTaggedValue result1 = BuiltinsDataView::GetInt32(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 479 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(-134185072).GetRawData()); in HWTEST_F_L0() 504 JSTaggedValue result1 = BuiltinsDataView::GetUint8(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 505 ASSERT_EQ(result1.GetRawData(), JSTaggedValue(255).GetRawData()); in HWTEST_F_L0() [all …]
|
D | builtins_promise_test.cpp | 80 [[maybe_unused]] bool result1 = JSObject::GetOwnProperty( in TestPromiseAllThenOnResolved() local 82 EXPECT_TRUE(result1); in TestPromiseAllThenOnResolved() 191 JSTaggedValue result1 = BuiltinsPromise::Reject(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 192 JSHandle<JSPromise> promise2(thread, result1); in HWTEST_F_L0() 269 JSTaggedValue result1 = BuiltinsPromise::Resolve(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 270 JSHandle<JSPromise> promise2(thread, result1); in HWTEST_F_L0() 299 JSTaggedValue result1 = BuiltinsPromise::Reject(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 300 JSHandle<JSPromise> rejectPromise(thread, result1); in HWTEST_F_L0() 370 JSTaggedValue result1 = BuiltinsPromise::Reject(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 371 JSHandle<JSPromise> rejectPromise(thread, result1); in HWTEST_F_L0() [all …]
|
D | builtins_arraybuffer_test.cpp | 119 JSTaggedValue result1 = BuiltinsArrayBuffer::Slice(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 122 … JSArrayBuffer::Cast(reinterpret_cast<TaggedObject *>(result1.GetRawData()))); in HWTEST_F_L0()
|
D | builtins_collator_test.cpp | 170 JSTaggedValue result1 = BuiltinsCollator::Compare(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 172 JSHandle<JSFunction> jsFunction(thread, result1); in HWTEST_F_L0() 219 JSTaggedValue result1 = BuiltinsCollator::Compare(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 222 JSHandle<JSFunction> jsFunction(thread, result1); in HWTEST_F_L0() 275 JSTaggedValue result1 = BuiltinsCollator::Compare(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 278 JSHandle<JSFunction> jsFunction(thread, result1); in HWTEST_F_L0()
|
/arkcompiler/toolchain/tooling/test/ |
D | pt_params_test.cpp | 88 …std::unique_ptr<GetPossibleBreakpointsParams> result1 = GetPossibleBreakpointsParams::Create(*ptJs… in HWTEST_F_L0() local 89 ASSERT_TRUE(result1 == nullptr); in HWTEST_F_L0() 100 std::unique_ptr<ResumeParams> result1 = ResumeParams::Create(*ptJson1); in HWTEST_F_L0() local 132 std::unique_ptr<StepIntoParams> result1 = StepIntoParams::Create(*ptJson1); in HWTEST_F_L0() local 133 ASSERT_TRUE(result1 != nullptr); in HWTEST_F_L0() 151 std::unique_ptr<StepOverParams> result1 = StepOverParams::Create(*ptJson1); in HWTEST_F_L0() local 152 ASSERT_TRUE(result1 != nullptr); in HWTEST_F_L0() 163 std::unique_ptr<SetMixedDebugParams> result1 = SetMixedDebugParams::Create(*ptJson1); in HWTEST_F_L0() local 175 std::unique_ptr<ReplyNativeCallingParams> result1 = ReplyNativeCallingParams::Create(*ptJson1); in HWTEST_F_L0() local 216 std::unique_ptr<RequestMemoryDumpParams> result1 = RequestMemoryDumpParams::Create(*ptJson1); in HWTEST_F_L0() local [all …]
|
D | pt_json_test.cpp | 206 Result result1 = ptJson.GetAny(test, &ptr); in HWTEST_F_L0() local 207 ASSERT_EQ(result1, Result::NOT_EXIST); in HWTEST_F_L0() 215 result1 = ptJson3.GetAny(test, &ptr1); in HWTEST_F_L0() 216 ASSERT_EQ(result1, Result::SUCCESS); in HWTEST_F_L0() 227 int32_t result1 = str.GetInt(int32_t(0)); in HWTEST_F_L0() local 228 ASSERT_EQ(result1, 0); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/plugins/ecmascript/tests/ |
D | ecmascript_meta_test.cpp | 28 std::optional<pandasm::Metadata::Error> result1 = rmd.SetAttribute("ecmascript.extends"); variable 29 ASSERT_TRUE(result1.has_value()); 30 ASSERT_EQ(err.GetMessage(), result1->GetMessage()); 31 ASSERT_EQ(err.GetType(), result1->GetType());
|
/arkcompiler/runtime_core/assembler/tests/ |
D | ecmascript_meta_test.cpp | 39 std::optional<pandasm::Metadata::Error> result1 = rmd.SetAttribute("ecmascript.extends"); variable 40 EXPECT_TRUE(result1.has_value()); 41 EXPECT_EQ(err.GetMessage(), result1->GetMessage()); 42 EXPECT_EQ(err.GetType(), result1->GetType()); 116 std::optional<pandasm::Metadata::Error> result1 = rmd.SetAttribute("ecmascript.annotation"); variable 117 EXPECT_TRUE(result1.has_value());
|
/arkcompiler/ets_runtime/test/moduletest/bindfunction/ |
D | bindfunction.js | 45 const result1 = addArguments(1, 2); // 3 constant 46 print(result1);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_iterator_test.cpp | 96 JSHandle<JSTaggedValue> result1(JSIterator::IteratorNext(thread, iter)); in HWTEST_F_L0() local 97 EXPECT_EQ(false, JSIterator::IteratorComplete(thread, result1)); in HWTEST_F_L0() 127 JSHandle<JSTaggedValue> result1(JSIterator::IteratorStep(thread, iter)); in HWTEST_F_L0() local 128 EXPECT_EQ(JSIterator::IteratorValue(thread, result1)->GetInt(), 1); in HWTEST_F_L0()
|
D | js_api_linked_list_iterator_test.cpp | 146 …JSHandle<JSTaggedValue> result1 = JSAPILinkedListIterator::CreateLinkedListIterator(thread, undefi… in HWTEST_F_L0() local 147 EXPECT_EQ(result1.GetTaggedValue(), JSTaggedValue::Exception()); in HWTEST_F_L0()
|
D | js_api_list_iterator_test.cpp | 146 JSHandle<JSTaggedValue> result1 = JSAPIListIterator::CreateListIterator(thread, undefined); in HWTEST_F_L0() local 147 EXPECT_EQ(result1.GetTaggedValue(), JSTaggedValue::Exception()); in HWTEST_F_L0()
|
D | js_relative_time_format_test.cpp | 101 …icu::UnicodeString result1 = rtfFormatter.formatNumericToValue(value, UDAT_REL_UNIT_YEAR, status).… in HWTEST_F_L0() local 102 JSHandle<EcmaString> stringValue1 = intl::LocaleHelper::UStringToString(thread, result1); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts | 54 let result1 = foo().prop **= foo().prop **= 2; variable 55 AssertType(result1, "number");
|
D | nonInferrableTypePropagation1.ts | 40 const result1 = createAndUnbox(() => thing.pipe( 41 AssertType(result1, "Thing<number>");
|