增加多窗口查找功能.Signed-off-by: <zhouke25@huawei.com>.

Signed-off-by: zhouke <zhouke25@huawe.com>
This commit is contained in:
zhouke
2022-06-09 16:15:16 +08:00
parent 44070de2c8
commit 39590eda13
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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();
+1 -1
View File
@@ -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));
};