/arkcompiler/runtime_core/assembler/tests/ |
D | ecmascript_meta_test.cpp | 47 …std::optional<pandasm::Metadata::Error> result3 = rmd.SetAttributeValue("ecmascript.extends", "val… variable 48 EXPECT_FALSE(result3.has_value()); 122 …std::optional<pandasm::Metadata::Error> result3 = rmd.SetAttributeValue("ecmascript.annotation", "… variable 123 EXPECT_TRUE(result3.has_value()); 124 EXPECT_EQ(result3->GetMessage(), "Unknown attribute 'ecmascript.annotation'"); 125 EXPECT_EQ(result3->GetType(), pandasm::Metadata::Error::Type::UNKNOWN_ATTRIBUTE);
|
/arkcompiler/ets_runtime/test/moduletest/bindfunction/ |
D | bindfunction.js | 63 const result3 = addThirtySeven(5, 10); // 37 + 5 = 42, (the second argument is ignored) constant 64 print(result3);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_iterator_test.cpp | 100 JSHandle<JSTaggedValue> result3(JSIterator::IteratorNext(thread, iter)); in HWTEST_F_L0() local 101 EXPECT_EQ(true, JSIterator::IteratorComplete(thread, result3)); in HWTEST_F_L0() 131 JSHandle<JSTaggedValue> result3(JSIterator::IteratorStep(thread, iter)); in HWTEST_F_L0() local 132 EXPECT_EQ(result3.GetTaggedValue(), JSTaggedValue::False()); in HWTEST_F_L0()
|
D | js_bigint_test.cpp | 116 bool result3 = BigInt::SameValueZero(maxSafeInt.GetTaggedValue(), minSafeInt.GetTaggedValue()); in HWTEST_F_L0() local 119 EXPECT_TRUE(!result3); in HWTEST_F_L0() 122 result3 = BigInt::SameValueZero(maxSafeInt.GetTaggedValue(), minusMinSafeInt.GetTaggedValue()); in HWTEST_F_L0() 125 EXPECT_TRUE(result3); in HWTEST_F_L0() 128 result3 = BigInt::SameValueZero(minSafeInt.GetTaggedValue(), minusMaxSafeInt.GetTaggedValue()); in HWTEST_F_L0() 131 EXPECT_TRUE(result3); in HWTEST_F_L0() 141 result3 = BigInt::SameValueZero(unsafeInt2.GetTaggedValue(), minusUnsafeInt1.GetTaggedValue()); in HWTEST_F_L0() 144 EXPECT_TRUE(result3); in HWTEST_F_L0()
|
D | js_api_vector_test.cpp | 427 … JSTaggedValue result3 = JSAPIVector::RemoveByRange(thread, toor, elementsNums, elementsNums * 2); in HWTEST_F_L0() local 428 EXPECT_EQ(result3, JSTaggedValue::Exception()); in HWTEST_F_L0()
|
D | js_api_lightweightset_test.cpp | 358 JSTaggedValue result3 = lws->GetHashAt(-1); in HWTEST_F_L0() local 359 EXPECT_EQ(result3, JSTaggedValue::Undefined()); in HWTEST_F_L0()
|
D | js_object_test.cpp | 1276 JSTaggedValue result3 = ChangeListener::Cast(listeners1.GetTaggedObject())->Get(index3); in HWTEST_F_L0() local 1281 EXPECT_TRUE(result3 == obj3Class.GetTaggedValue()); in HWTEST_F_L0()
|
D | js_serializer_test.cpp | 827 OperationResult result3 = JSObject::GetProperty(thread, res, key3); in ObjectWithConcurrentFunctionTest() local 828 JSHandle<JSTaggedValue> value3 = result3.GetRawValue(); in ObjectWithConcurrentFunctionTest()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_weak_map_test.cpp | 161 JSTaggedValue result3 = BuiltinsWeakMap::Has(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 164 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0() 207 JSTaggedValue result3 = BuiltinsWeakMap::Delete(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 209 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0() 260 JSTaggedValue result3 = BuiltinsWeakMap::Delete(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 261 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0()
|
D | builtins_weak_set_test.cpp | 156 JSTaggedValue result3 = BuiltinsWeakSet::Has(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 159 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0() 201 JSTaggedValue result3 = BuiltinsWeakSet::Delete(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 203 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0() 253 JSTaggedValue result3 = BuiltinsWeakSet::Delete(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 254 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0()
|
D | builtins_date_test.cpp | 96 [[maybe_unused]] JSTaggedValue result3 = BuiltinsDate::SetUTCDate(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 111 [[maybe_unused]] JSTaggedValue result3 = BuiltinsDate::SetUTCDate(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 140 JSTaggedValue result3 = BuiltinsDate::GetDate(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 142 ASSERT_EQ(result3.GetRawData(), JSTaggedValue(static_cast<double>(6)).GetRawData()); in HWTEST_F_L0() 192 JSTaggedValue result3 = BuiltinsDate::GetDate(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 193 ASSERT_EQ(result3.GetRawData(), JSTaggedValue(static_cast<double>(22)).GetRawData()); in HWTEST_F_L0() 239 JSTaggedValue result3 = BuiltinsDate::GetSeconds(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 240 ASSERT_EQ(result3.GetRawData(), JSTaggedValue(static_cast<double>(6)).GetRawData()); in HWTEST_F_L0() 293 JSTaggedValue result3 = BuiltinsDate::GetSeconds(ecmaRuntimeCallInfo); in HWTEST_F_L0() local 294 ASSERT_EQ(result3.GetRawData(), JSTaggedValue(static_cast<double>(53)).GetRawData()); in HWTEST_F_L0() [all …]
|
D | builtins_set_test.cpp | 168 JSTaggedValue result3 = BuiltinsSet::Has(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 171 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0() 281 JSTaggedValue result3 = BuiltinsSet::Delete(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 283 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0()
|
D | builtins_map_test.cpp | 177 JSTaggedValue result3 = BuiltinsMap::Has(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 179 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0() 265 JSTaggedValue result3 = BuiltinsMap::Delete(ecmaRuntimeCallInfo1); in HWTEST_F_L0() local 267 EXPECT_EQ(result3.GetRawData(), JSTaggedValue::True().GetRawData()); in HWTEST_F_L0()
|
D | builtins_sharedarraybuffer_test.cpp | 152 JSTaggedValue result3 = BuiltinsSharedArrayBuffer::Slice(ecmaRuntimeCallInfo2); in HWTEST_F_L0() local 155 EXPECT_EQ(result3, JSTaggedValue::Exception()); in HWTEST_F_L0()
|
D | builtins_string_test.cpp | 1076 JSTaggedValue result3 = BuiltinsString::Replace(ecmaRuntimeCallInfo3); in HWTEST_F_L0() local 1079 JSHandle<EcmaString> resultString3(thread, result3); in HWTEST_F_L0() 1080 ASSERT_TRUE(result3.IsString()); in HWTEST_F_L0() 1152 JSTaggedValue result3 = BuiltinsString::Replace(ecmaRuntimeCallInfo3); in HWTEST_F_L0() local 1155 JSHandle<EcmaString> resultString3(thread, result3); in HWTEST_F_L0() 1156 ASSERT_TRUE(result3.IsString()); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | json_parser_test.cpp | 69 JSHandle<JSTaggedValue> result3 = parser.ParseUtf8(*handleStr3); in HWTEST_F_L0() local 70 EXPECT_EQ(result3.GetTaggedValue(), JSTaggedValue::True()); in HWTEST_F_L0() 102 JSHandle<JSTaggedValue> result3 = parser.ParseUtf16(*handleStr3); in HWTEST_F_L0() local 103 EXPECT_EQ(result3.GetTaggedValue(), JSTaggedValue::True()); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/plugins/ecmascript/tests/ |
D | ecmascript_meta_test.cpp | 36 …std::optional<pandasm::Metadata::Error> result3 = rmd.SetAttributeValue("ecmascript.extends", "val… variable 37 ASSERT_FALSE(result3.has_value());
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | indexingTypesWithNever.ts | 37 const result3 = genericFn1({ c: "ctest", d: "dtest" }); 38 AssertType(result3, "never");
|
D | conditionalOperatorWithIdenticalBCT.ts | 76 let result3 = true ? { a: 1 } : { a: 2, b: 'string' }; variable 77 AssertType(result3, "union");
|
/arkcompiler/toolchain/tooling/test/ |
D | pt_json_test.cpp | 231 double result3 = str.GetDouble(0.1); // 0.1:num in HWTEST_F_L0() local 232 ASSERT_EQ(result3, 0.1); // 0.1:num in HWTEST_F_L0()
|
D | pt_types_test.cpp | 459 … std::unique_ptr<PrivatePropertyDescriptor> result3 = PrivatePropertyDescriptor::Create(*ptJson3); in HWTEST_F_L0() local
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_hashmap_test.cpp | 393 JSMutableHandle<JSTaggedValue> result3(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0() local 401 result3.Update(JSAPIHashMapIterator::Next(callInfo)); in HWTEST_F_L0() 403 entries.Update(JSIterator::IteratorValue(thread, result3).GetTaggedValue()); in HWTEST_F_L0()
|