| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/sts_to_ts/ |
| H A D | check_apply_function_generic.js | 17 jsInt, 28 ASSERT_TRUE(applyFunctionGeneric(jsInt, jsInt, add) === jsInt + jsInt); 34 ASSERT_TRUE(applyFunctionGeneric(jsInt, jsInt, add) === jsInt + jsInt);
|
| H A D | check_generic_extends_class.js | 17 jsInt, 27 const GClass = new Vector(jsInt); 29 const res = genericExtendsClass(new Vector(jsInt)); 31 ASSERT_TRUE(res.get() === jsInt + jsInt); 35 const res = genericExtendsClassCallFromSts(new Vector(jsInt)); 37 ASSERT_TRUE(res.get() === jsInt + jsInt);
|
| H A D | check_generic_subset_class.js | 17 jsInt, 29 ASSERT_TRUE(GClass.get(jsInt, jsInt, add) === jsInt + jsInt); 34 ASSERT_TRUE(subsetClassCallFromSts() === jsInt + jsInt);
|
| H A D | check_apply_function_with_constraints.js | 17 jsInt, 29 ASSERT_TRUE(applyFunctionWithConstraints(jsInt, jsString, concat) === concat(jsInt, jsString)); 33 ASSERT_TRUE(applyFunctionWithConstraintsFromSts(jsInt, jsString) === concat(jsInt, jsString));
|
| H A D | check_apply_function_generic_union.js | 17 jsInt, 26 ASSERT_TRUE(applyFunctionGenericUnion(jsInt, jsInt, add) === jsInt + jsInt);
|
| H A D | check_apply_function_generic_array.js | 17 jsInt, 27 const arr = [jsInt, jsInt]; 32 const arr = [jsInt, jsInt];
|
| H A D | check_apply_function_generics.js | 17 jsInt, 29 ASSERT_TRUE(applyFunctionGenerics(jsInt, jsString, concat) === jsInt + ' ' + jsString); 36 ASSERT_TRUE(applyFunctionGenerics(jsInt, jsString, concat) === jsInt + ' ' + jsString);
|
| H A D | generic_call_params.test.js | 18 const jsInt = 1; 21 const jsArr = [jsInt]; 23 const jsTuple = [jsInt, jsBool]; 37 jsInt,
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_static/sts_to_js/ |
| H A D | generic_static.test.js | 17 const jsInt = 1; 20 const jsArr = [jsInt]; 22 const jsTuple = [jsInt, jsBool]; 25 const jsUser = { num: jsInt }; 26 const jsBaseObj = { a: jsInt }; 27 const jsArrInt = [jsInt]; 44 jsInt,
|
| H A D | check_static_method.js | 17 jsInt, 30 ASSERT_TRUE(GenericStatic.get(jsInt) === jsInt); 47 ASSERT_TRUE(genericStaticMethodCallFromSts(jsInt) === jsInt);
|
| H A D | check_class_extends.js | 17 jsInt, 30 ASSERT_TRUE(GenericExtends.get(jsInt) === jsInt); 47 ASSERT_TRUE(genericClassExtendsCallFromSts(jsInt) === jsInt);
|
| H A D | check_generic_union_static.js | 17 jsInt, 27 ASSERT_TRUE(UnionStatic.get(jsInt) === jsInt); 35 ASSERT_TRUE(genericUnionStaticCallFromSts(jsInt) === jsInt);
|
| H A D | check_user_class.js | 17 jsInt, 28 ASSERT_TRUE(checkInstance(UserClassStatic.get(new User(jsInt)), User)); 32 ASSERT_TRUE(checkInstance(userClassFromSts(new User(jsInt)), User));
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_as_parameter/sts_to_ts/ |
| H A D | check_generic_default_type.js | 19 jsInt, 46 ASSERT_TRUE(genericDefaultInt(jsInt) === jsInt); 77 ASSERT_TRUE(genericDefaultIntCallFromEts() === jsInt); 103 ASSERT_TRUE(genericDefaultUnionCallFromEts() === jsInt); 107 ASSERT_TRUE(genericDefaultLiteralCallFromEts() === jsInt); 111 ASSERT_TRUE(genericDefaultLiteral(jsInt) === jsInt);
|
| H A D | check_collect_generic.js | 19 jsInt, 27 const res = collectGeneric(...[jsInt]); 29 ASSERT_TRUE(checkArray(res) && res[0] === jsInt); 45 const res = collectGeneric(jsInt, jsInt); 47 ASSERT_TRUE(checkArray(res) && res[0] === jsInt && res[1] === jsInt);
|
| H A D | check_any_type_parameter.js | 19 jsInt, 38 ASSERT_TRUE(anyTypeParameter(jsInt) === jsInt); 64 ASSERT_TRUE(anyTypeParameterExplicitCallFromEtsInt() === jsInt); 85 ASSERT_TRUE(anyTypeParameterExplicitCallFromEtsUnion() === jsInt);
|
| H A D | check_generic_constructor.js | 19 jsInt, 28 const user = new UserClass(jsString, jsInt); 30 ASSERT_TRUE(checkObj(user) && user.getName() === jsString && user.getAge() === jsInt); 36 ASSERT_TRUE(checkObj(user) && user.getName() === jsString && user.getAge() === jsInt);
|
| H A D | generic_as_parameter.test.js | 18 const jsInt = 1; 21 const jsArr = [jsInt]; 23 const jsTuple = [jsInt, jsBool]; 37 jsInt,
|
| H A D | check_tuple_parameter_generic.js | 19 jsInt, 26 const res = tupleGeneric([jsInt, jsString]); 29 res[1] === jsInt);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/callable_signature/sts_to_js/ |
| H A D | check_callable_signature.js | 17 jsInt, 25 ASSERT_TRUE(invokeMethodFromSts(jsInt, jsInt) === jsInt + jsInt);
|
| H A D | check_call_invoke_instantiate.js | 17 jsInt, 26 InvokeClass(jsInt, jsInt);
|
| H A D | callable_signature.test.js | 19 const jsInt = 1; 29 jsInt,
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/dot_operator/sts_to_js/ |
| H A D | check_call_chaining.js | 18 jsInt, 26 const resChaining = Obj.arr.reverse().map(i => i + jsInt).filter(i => i > jsInt).sort().reduce((a, b) => a - b);
|
| H A D | dot_operator.test.js | 18 const jsInt = 1; 24 jsInt,
|
| /base/request/request/frameworks/js/napi/src/ |
| H A D | napi_utils.cpp | 158 napi_value jsInt = Convert2JSValue(env, cInt);
in Convert2JSValue() local 159 napi_set_element(env, value, index++, jsInt);
in Convert2JSValue()
|