mirror of
https://github.com/openharmony/ace_engine_lite.git
synced 2026-07-21 00:35:30 -04:00
fix dialog tdd test crash problem
Signed-off-by: wuhy_irobot2013 <wuhuayang@huawei.com> Change-Id: I204e3909acaa4d353a28879517081972a6deeb00
This commit is contained in:
@@ -323,7 +323,7 @@ void DialogTddTest::DialogTest002()
|
||||
}
|
||||
|
||||
// step2: set dialog window id and click
|
||||
const int16_t positionX1 = 414;
|
||||
const int16_t positionX1 = 460;
|
||||
const int16_t positionY1 = 274;
|
||||
Window *window = RootView::GetInstance()->GetBoundWindow();
|
||||
EventInjector::GetInstance()->SetWindowId(window->GetWindowId() + 1);
|
||||
@@ -342,7 +342,7 @@ void DialogTddTest::DialogTest002()
|
||||
}
|
||||
|
||||
// step5: set dialog window id and click
|
||||
const int16_t positionX2 = 469;
|
||||
const int16_t positionX2 = 500;
|
||||
const int16_t positionY2 = 274;
|
||||
EventInjector::GetInstance()->SetWindowId(window->GetWindowId() + 1);
|
||||
Click(positionX2, positionY2);
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "event_injector.h"
|
||||
#include "js_app_context.h"
|
||||
#include "js_app_environment.h"
|
||||
#include "module_manager.h"
|
||||
#include "root_view.h"
|
||||
|
||||
namespace OHOS {
|
||||
@@ -97,6 +98,7 @@ void BasicTddTest::SetUp()
|
||||
|
||||
void BasicTddTest::TearDown()
|
||||
{
|
||||
ModuleManager::GetInstance()->CleanUpModule();
|
||||
JsAppEnvironment::GetInstance()->Cleanup();
|
||||
|
||||
EventInjector *injector = EventInjector::GetInstance();
|
||||
|
||||
Reference in New Issue
Block a user