Home
last modified time | relevance | path

Searched refs:optionsObj (Results 1 – 18 of 18) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_number_format_test.cpp143 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
144 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in HWTEST_F_L0()
145 JSTaggedValue formatResult = BuiltinsFormatTest(thread, optionsObj, numberVal, localeString); in HWTEST_F_L0()
171 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
172 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in HWTEST_F_L0()
173 JSObject::SetProperty(thread, optionsObj, currencyKey, currencyValue); in HWTEST_F_L0()
174 JSObject::SetProperty(thread, optionsObj, currencyDisplayKey, currencyDisplayValue); in HWTEST_F_L0()
175 JSObject::SetProperty(thread, optionsObj, currencySignDisplayKey, currencySignDisplayValue); in HWTEST_F_L0()
176 JSTaggedValue formatResult = BuiltinsFormatTest(thread, optionsObj, numberVal, localeString); in HWTEST_F_L0()
198 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
[all …]
Dbuiltins_locale_test.cpp81 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
82 JSObject::SetProperty(thread, optionsObj, numericKey, numericValue); in HWTEST_F_L0()
83 JSObject::SetProperty(thread, optionsObj, regionKey, regionValue); in HWTEST_F_L0()
84 JSObject::SetProperty(thread, optionsObj, languageKey, languageValue); in HWTEST_F_L0()
85 JSObject::SetProperty(thread, optionsObj, scriptKey, scriptValue); in HWTEST_F_L0()
91 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); in HWTEST_F_L0()
115 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in JSLocaleCreateWithOptionTest() local
116 JSObject::SetProperty(thread, optionsObj, languageKey, languageValue); in JSLocaleCreateWithOptionTest()
117 JSObject::SetProperty(thread, optionsObj, regionKey, regionValue); in JSLocaleCreateWithOptionTest()
118 JSObject::SetProperty(thread, optionsObj, scriptKey, scriptValue); in JSLocaleCreateWithOptionTest()
[all …]
Dbuiltins_date_time_format_test.cpp96 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in BuiltinsDateTimeOptionsSet() local
120 JSObject::SetProperty(thread, optionsObj, key, numicValue); in BuiltinsDateTimeOptionsSet()
122 JSObject::SetProperty(thread, optionsObj, weekDay, weekDayValue); in BuiltinsDateTimeOptionsSet()
123 JSObject::SetProperty(thread, optionsObj, dayPeriod, dayPeriodValue); in BuiltinsDateTimeOptionsSet()
124 JSObject::SetProperty(thread, optionsObj, hourCycle, hourCycleValue); in BuiltinsDateTimeOptionsSet()
125 JSObject::SetProperty(thread, optionsObj, timeZone, timeZoneValue); in BuiltinsDateTimeOptionsSet()
126 return optionsObj.GetTaggedValue(); in BuiltinsDateTimeOptionsSet()
133 JSHandle<JSObject> optionsObj(thread, BuiltinsDateTimeOptionsSet(thread)); in JSDateTimeFormatCreateWithLocaleTest() local
140 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); in JSDateTimeFormatCreateWithLocaleTest()
401 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
[all …]
Dbuiltins_collator_test.cpp87 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
88 JSObject::SetProperty(thread, optionsObj, usageKey, usageValue); in HWTEST_F_L0()
89 JSObject::SetProperty(thread, optionsObj, localeMatcherKey, localeMatcherValue); in HWTEST_F_L0()
90 JSObject::SetProperty(thread, optionsObj, caseFirstKey, caseFirstValue); in HWTEST_F_L0()
91 JSObject::SetProperty(thread, optionsObj, sensitivityKey, sensitivityValue); in HWTEST_F_L0()
92 JSObject::SetProperty(thread, optionsObj, ignorePunctuationKey, ignorePunctuationValue); in HWTEST_F_L0()
93 JSObject::SetProperty(thread, optionsObj, numericKey, numericValue); in HWTEST_F_L0()
99 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); // set option tag in HWTEST_F_L0()
141 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in JSCollatorCreateWithLocaleAndOptionsTest() local
142 JSObject::SetProperty(thread, optionsObj, usageKey, usageValue); in JSCollatorCreateWithLocaleAndOptionsTest()
[all …]
Dbuiltins_displaynames_test.cpp69 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in JSDisplayNamesCreateWithOptionTest() local
72 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in JSDisplayNamesCreateWithOptionTest()
79 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); in JSDisplayNamesCreateWithOptionTest()
106 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
107 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in HWTEST_F_L0()
108 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in HWTEST_F_L0()
109 JSObject::SetProperty(thread, optionsObj, fallbackKey, fallbackValue); in HWTEST_F_L0()
115 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); in HWTEST_F_L0()
245 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
246 JSObject::SetProperty(thread, optionsObj, localeMatcherKey, localeMatcherValue); in HWTEST_F_L0()
[all …]
Dbuiltins_list_format_test.cpp92 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in JSListFormatCreateWithOptionTest() local
95 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in JSListFormatCreateWithOptionTest()
101 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); in JSListFormatCreateWithOptionTest()
493 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
494 JSObject::SetProperty(thread, optionsObj, localeMatcherKey, localeMatcherValue); in HWTEST_F_L0()
500 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); in HWTEST_F_L0()
Dbuiltins_relative_time_format_test.cpp92 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in JSRelativeTimeFormatCreateWithLocaleTest() local
95 JSObject::SetProperty(thread, optionsObj, typeKey, numericValue); in JSRelativeTimeFormatCreateWithLocaleTest()
102 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); in JSRelativeTimeFormatCreateWithLocaleTest()
Dbuiltins_plural_rules_test.cpp92 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in JSPluralRulesCreateWithLocaleTest() local
95 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in JSPluralRulesCreateWithLocaleTest()
102 ecmaRuntimeCallInfo->SetCallArg(1, optionsObj.GetTaggedValue()); in JSPluralRulesCreateWithLocaleTest()
Dbuiltins_bigint_test.cpp235 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
252 JSObject::SetProperty(thread, optionsObj, formatStyle, styleKey); in HWTEST_F_L0()
253 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in HWTEST_F_L0()
259 ecmaRuntimeCallInfo2->SetCallArg(1, optionsObj.GetTaggedValue()); in HWTEST_F_L0()
Dbuiltins_errors_test.cpp1003 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
1005 JSObject::SetProperty(thread, optionsObj, causeKey, causeValue); in HWTEST_F_L0()
1013 ecmaRuntimeCallInfo->SetCallArg(2, optionsObj.GetTaggedValue()); // 2 means the options arg in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_locale_test.cpp261 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
262 JSObject::SetProperty(thread, optionsObj, languageKey, languageValue); in HWTEST_F_L0()
263 JSObject::SetProperty(thread, optionsObj, regionKey, regionValue); in HWTEST_F_L0()
264 JSObject::SetProperty(thread, optionsObj, scriptKey, scriptValue); in HWTEST_F_L0()
265 bool result = JSLocale::ApplyOptionsToTag(thread, languageTag, optionsObj, tagElements); in HWTEST_F_L0()
272 JSObject::SetProperty(thread, optionsObj, scriptKey, scriptValue1); in HWTEST_F_L0()
273 result = JSLocale::ApplyOptionsToTag(thread, languageTag, optionsObj, tagElements); in HWTEST_F_L0()
311 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
312 JSObject::SetProperty(thread, optionsObj, mnidKey, mnidValue); in HWTEST_F_L0()
313 JSObject::SetProperty(thread, optionsObj, mnsdKey, maxFraValue); in HWTEST_F_L0()
[all …]
Djs_displaynames_test.cpp111 void SetOptionProperties(JSThread *thread, JSHandle<JSObject> &optionsObj, in SetOptionProperties() argument
124 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in SetOptionProperties()
125 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in SetOptionProperties()
126 JSObject::SetProperty(thread, optionsObj, fallBackKey, fallBackValue); in SetOptionProperties()
Djs_number_format_test.cpp180 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
181 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in HWTEST_F_L0()
182 …t::InitializeNumberFormat(thread, numberFormat, localeString, JSHandle<JSTaggedValue>(optionsObj)); in HWTEST_F_L0()
Djs_date_time_format_test.cpp66 void SetDateOptionsTest(JSThread *thread, JSHandle<JSObject> &optionsObj, in SetDateOptionsTest() argument
83 JSObject::SetProperty(thread, optionsObj, weekdayKey, weekdayValue); in SetDateOptionsTest()
84 JSObject::SetProperty(thread, optionsObj, yearKey, yearValue); in SetDateOptionsTest()
85 JSObject::SetProperty(thread, optionsObj, monthKey, monthValue); in SetDateOptionsTest()
86 JSObject::SetProperty(thread, optionsObj, dayKey, dayValue); in SetDateOptionsTest()
89 void SetTimeOptionsTest(JSThread *thread, JSHandle<JSObject> &optionsObj, in SetTimeOptionsTest() argument
109 JSObject::SetProperty(thread, optionsObj, dayPeriodKey, dayPeriodValue); in SetTimeOptionsTest()
110 JSObject::SetProperty(thread, optionsObj, hourKey, hourValue); in SetTimeOptionsTest()
111 JSObject::SetProperty(thread, optionsObj, minuteKey, minuteValue); in SetTimeOptionsTest()
112 JSObject::SetProperty(thread, optionsObj, secondKey, secondValue); in SetTimeOptionsTest()
[all …]
Djs_plural_rules_test.cpp154 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
155 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in HWTEST_F_L0()
Djs_list_format_test.cpp129 void SetFormatterOptionsTest(JSThread *thread, JSHandle<JSObject> &optionsObj, in SetFormatterOptionsTest() argument
141 JSObject::SetProperty(thread, optionsObj, localeMatcherKey, localeMatcherValue); in SetFormatterOptionsTest()
142 JSObject::SetProperty(thread, optionsObj, typeKey, typeValue); in SetFormatterOptionsTest()
143 JSObject::SetProperty(thread, optionsObj, styleKey, styleValue); in SetFormatterOptionsTest()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_locale.cpp70 JSHandle<JSObject> optionsObj; in LocaleConstructor() local
72 optionsObj = factory->CreateNullJSObject(); in LocaleConstructor()
74 optionsObj = JSTaggedValue::ToObject(thread, options); in LocaleConstructor()
78 … JSHandle<JSLocale> result = JSLocale::InitializeLocale(thread, locale, localeString, optionsObj); in LocaleConstructor()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Derror_helper_test.cpp339 …JSHandle<JSObject> optionsObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), ob… in HWTEST_F_L0() local
341 JSObject::SetProperty(thread, optionsObj, causeKey, causeValue); in HWTEST_F_L0()
349 argv1->SetCallArg(1, optionsObj.GetTaggedValue()); in HWTEST_F_L0()
367 argv2->SetCallArg(1, optionsObj.GetTaggedValue()); in HWTEST_F_L0()