mirror of
https://gitee.com/openharmony/arkcompiler_toolchain
synced 2025-02-20 17:20:56 +00:00
commit
2b94f37888
@ -403,10 +403,10 @@ HWTEST_F_L0(PtTypesTest, SymbolRemoteObjectTest)
|
||||
|
||||
HWTEST_F_L0(PtTypesTest, DescriptionForObjectForDate)
|
||||
{
|
||||
double input = 123456789;
|
||||
double input = 123456789.0;
|
||||
Local<DateRef> date = DateRef::New(ecmaVm, input);
|
||||
std::string description = ObjectRemoteObject::DescriptionForObject(ecmaVm, date);
|
||||
ASSERT_TRUE(description == "Fri Jan 02 1970 18:17:36 GMT+0800");
|
||||
ASSERT_TRUE(description.find("GMT") != std::string::npos);
|
||||
}
|
||||
|
||||
HWTEST_F_L0(PtTypesTest, DescriptionForObjectForPromise)
|
||||
@ -833,4 +833,4 @@ HWTEST_F_L0(PtTypesTest, PropertyDescriptorCreate)
|
||||
std::unique_ptr<tooling::PropertyDescriptor> result = tooling::PropertyDescriptor::Create(*ptJson);
|
||||
ASSERT_TRUE(!result);
|
||||
}
|
||||
} // namespace panda::test
|
||||
} // namespace panda::test
|
||||
|
Loading…
x
Reference in New Issue
Block a user