Optimize test cases

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IATUY3

Signed-off-by: hlm2001 <huanglimin10@huawei.com>
This commit is contained in:
hlm2001 2024-09-26 15:19:30 +08:00
parent 7368abf1b9
commit faa6a411bb

View File

@ -318,7 +318,7 @@ HWTEST_F_L0(ObjectOperatorTest, Property_DeleteElement2)
JSHandle<NumberDictionary> handleDict = NumberDictionary::Create(thread, 4);
handleGlobalObject->SetElements(thread, handleDict.GetTaggedValue());
handleGlobalObject->GetClass()->SetIsDictionaryElement(true);
for (int i = 0; i < 10000; i++) {
for (int i = 0; i < 10; i++) {
JSHandle<JSTaggedValue> handleKey(thread, JSTaggedValue(i));
JSHandle<JSTaggedValue> handleValue(thread, JSTaggedValue(i));
JSObject::SetProperty(thread, globalObj, handleKey, handleValue);