mirror of
https://github.com/openharmony/ace_engine_lite.git
synced 2026-07-21 08:55:21 -04:00
issueNo: I4DCQU
Description: fix the failure of event bubble tdd test case Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: youzhi92 <chenyouzhi@huawei.com> Change-Id: I14b66bb4f3cf98ba406c83fe2e38be5a0a20f21d
This commit is contained in:
@@ -367,9 +367,19 @@ int32_t JsAppContext::GetCompatibleApi() const
|
||||
return compatibleApi_;
|
||||
}
|
||||
|
||||
void JsAppContext::SetCompatibleApi(int32_t compatibleApi)
|
||||
{
|
||||
compatibleApi_ = compatibleApi;
|
||||
}
|
||||
|
||||
int32_t JsAppContext::GetTargetApi() const
|
||||
{
|
||||
return targetApi_;
|
||||
}
|
||||
|
||||
void JsAppContext::SetTargetApi(int32_t targetApi)
|
||||
{
|
||||
targetApi_ = targetApi;
|
||||
}
|
||||
} // namespace ACELite
|
||||
} // namespace OHOS
|
||||
|
||||
@@ -98,7 +98,9 @@ public:
|
||||
}
|
||||
void LoadApiVersion();
|
||||
int32_t GetCompatibleApi() const;
|
||||
void SetCompatibleApi(int32_t compatibleApi);
|
||||
int32_t GetTargetApi() const;
|
||||
void SetTargetApi(int32_t targetApi);
|
||||
|
||||
const AppStyleManager *GetStyleManager()
|
||||
{
|
||||
|
||||
@@ -87,6 +87,10 @@ void BasicTddTest::TearDownTestCase(void)
|
||||
|
||||
void BasicTddTest::SetUp()
|
||||
{
|
||||
JsAppContext *appContext = JsAppContext::GetInstance();
|
||||
const int32_t apiVersion = 6;
|
||||
appContext->SetCompatibleApi(apiVersion);
|
||||
appContext->SetTargetApi(apiVersion);
|
||||
JsAppEnvironment::GetInstance()->InitJsFramework();
|
||||
EventInjector *injector = EventInjector::GetInstance();
|
||||
if (!injector->IsEventInjectorRegistered(EventDataType::POINT_TYPE)) {
|
||||
|
||||
Reference in New Issue
Block a user