mirror of
https://github.com/openharmony/arkXtest.git
synced 2026-07-20 23:57:12 -04:00
增加多窗口查找功能.Signed-off-by: <zhouke25@huawei.com>.
Signed-off-by: zhouke <zhouke25@huawe.com>
This commit is contained in:
@@ -311,7 +311,7 @@ namespace OHOS::uitest {
|
||||
widgetsConstructed_ = true;
|
||||
}
|
||||
|
||||
static void DfsMarshalWidget(const WidgetTree &tree, const Widget &root, nlohmann::json &dom)
|
||||
static void DfsMarshalWidget(const WidgetTree& tree, const Widget& root, nlohmann::json& dom)
|
||||
{
|
||||
auto attributesData = json();
|
||||
// "< UiAttr::HIERARCHY" : do not expose inner used attributes
|
||||
@@ -340,7 +340,7 @@ namespace OHOS::uitest {
|
||||
dom["children"] = childrenData;
|
||||
}
|
||||
|
||||
void WidgetTree::MarshalIntoDom(nlohmann::json &dom) const
|
||||
void WidgetTree::MarshalIntoDom(nlohmann::json& dom) const
|
||||
{
|
||||
DCHECK(widgetsConstructed_);
|
||||
auto root = GetRootWidget();
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace OHOS::uitest {
|
||||
class Widget : public BackendClass {
|
||||
public:
|
||||
// disable default constructor, copy constructor and assignment operator
|
||||
explicit Widget(std::string_view hierarchy) : hierarchy_(hierarchy)
|
||||
explicit Widget(std::string_view hierarchy) : hierarchy_(hierarchy)
|
||||
{
|
||||
attributes_.insert(std::make_pair(ATTR_NAMES[UiAttr::HIERARCHY], hierarchy));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user