Home
last modified time | relevance | path

Searched refs:GetAttr (Results 1 – 12 of 12) sorted by relevance

/test/testfwk/arkxtest/uitest/test/
Dui_model_test.cpp42 ASSERT_EQ("none", widget.GetAttr(UiAttr::MAX)); in TEST()
45 ASSERT_EQ("", widget.GetAttr(UiAttr::TEXT)); in TEST()
61 ASSERT_EQ("wyz", newWidget.GetAttr(UiAttr::TEXT)); in TEST()
62 ASSERT_EQ("100", newWidget.GetAttr(UiAttr::ID)); in TEST()
101 ASSERT_TRUE(ret->GetAttr(UiAttr::TEXT) == "Camera"); in TEST()
Dwidget_selector_test.cpp190 ASSERT_EQ("4", visits[targets[0]].GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
207 ASSERT_EQ("6", visits[targets[0]].GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
223 ASSERT_EQ("4", visits[targets[0]].GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
224 ASSERT_EQ("6", visits[targets[1]].GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
263 ASSERT_EQ("6", visits[targets[0]].GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
286 ASSERT_EQ("14", visits[targets[0]].GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
287 ASSERT_EQ("15", visits[targets[1]].GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
336 ASSERT_EQ("8", visits[targets[0]].GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
364 ASSERT_EQ("6", visits.at(targets.at(0)).GetAttr(ACCESSIBILITY_ID)); in TEST_F()
365 ASSERT_EQ("8", visits.at(targets.at(1)).GetAttr(ACCESSIBILITY_ID)); in TEST_F()
[all …]
Dselect_strategy_test.cpp49 ASSERT_EQ(widget.GetAttr(UiAttr::VISIBLE), "true"); in TEST()
74 ASSERT_EQ(widget.GetAttr(UiAttr::VISIBLE), "false"); in TEST()
99 ASSERT_EQ(widget.GetAttr(UiAttr::VISIBLE), "true"); in TEST()
277 ASSERT_EQ(visits2[targets2[0]].GetAttr(UiAttr::ACCESSIBILITY_ID), "5"); in TEST()
302 ASSERT_EQ(visits3[targets3[0]].GetAttr(UiAttr::ACCESSIBILITY_ID), "4"); in TEST()
303 ASSERT_EQ(visits3[targets3[1]].GetAttr(UiAttr::ACCESSIBILITY_ID), "5"); in TEST()
350 ASSERT_EQ(visits2[targets2[0]].GetAttr(UiAttr::ACCESSIBILITY_ID), "7"); in TEST()
374 ASSERT_EQ(visits3[targets3[0]].GetAttr(UiAttr::ACCESSIBILITY_ID), "4"); in TEST()
375 ASSERT_EQ(visits3[targets3[1]].GetAttr(UiAttr::ACCESSIBILITY_ID), "5"); in TEST()
400 ASSERT_EQ(visits3[targets3[0]].GetAttr(UiAttr::TEXT), "Text One"); in TEST()
[all …]
Dwidget_operator_test.cpp225 ASSERT_EQ("5", rev->GetAttr(UiAttr::ACCESSIBILITY_ID)); in TEST_F()
Dui_driver_test.cpp157 ASSERT_TRUE(ret->GetAttr(UiAttr::TEXT) == "USB"); in TEST_F()
/test/testfwk/arkxtest/uitest/core/
Dselect_strategy.cpp53 … widget.GetAttr(UiAttr::ACCESSIBILITY_ID).data(), widget.GetBounds().Describe().data(), in CalcWidgetVisibleBounds()
62 … widget.GetAttr(UiAttr::ACCESSIBILITY_ID).data(), widget.GetBounds().Describe().data(), in CalcWidgetVisibleBounds()
68 CONTAINER_TYPE.find(widget.GetAttr(UiAttr::TYPE)) != CONTAINER_TYPE.cend()) { in CalcWidgetVisibleBounds()
71 widget.GetAttr(UiAttr::ACCESSIBILITY_ID).data()); in CalcWidgetVisibleBounds()
85 widget.GetAttr(UiAttr::ACCESSIBILITY_ID).data(), widget.ToStr().data()); in CalcWidgetVisibleBounds()
142 widget.GetAttr(UiAttr::ACCESSIBILITY_ID).data(), oriBounds.Describe().data()); in RefreshWidgetBounds()
153 if (widget.GetAttr(UiAttr::VISIBLE) == "false") { in RefreshWidgetBounds()
158 CONTAINER_TYPE.find(widget.GetAttr(UiAttr::TYPE)) != CONTAINER_TYPE.cend()) { in RefreshWidgetBounds()
188 if (anchorWidget.GetAttr(UiAttr::VISIBLE) == "false") { in LocateNode()
190 … LOG_I("Widget %{public}s is invisible", anchorWidget.GetAttr(UiAttr::ACCESSIBILITY_ID).data()); in LocateNode()
[all …]
Dwidget_operator.cpp33 if (allWidgets.at(index)->GetAttr(UiAttr::ACCESSIBILITY_ID) == in IsScrolledToBorder()
34 anchorLeafWidget->GetAttr(UiAttr::ACCESSIBILITY_ID)) { in IsScrolledToBorder()
108 ConstructNoFilterInWidgetSelector(selector, hostApp, widget_.GetAttr(UiAttr::HASHCODE)); in ScrollToEnd()
186 auto origText = retrieved->GetAttr(UiAttr::TEXT); in InputText()
217 …auto newSelector = ConstructScrollFindSelector(selector, widget_.GetAttr(UiAttr::HASHCODE), hostAp… in ScrollFindWidget()
225 … ConstructNoFilterInWidgetSelector(scrollSelector, hostApp, widget_.GetAttr(UiAttr::HASHCODE)); in ScrollFindWidget()
Dui_driver.cpp183 … clone->SetAttr(UiAttr::DUMMY_ATTRNAME_SELECTION, selectDesc + from.GetAttr(UiAttr::HASHCODE)); in CloneFreeWidget()
190 WidgetMatchModel attrMatch{UiAttr::HASHCODE, widget.GetAttr(UiAttr::HASHCODE), EQ}; in ConstructSelectStrategyByRetrieve()
198 auto winId = widget.GetAttr(UiAttr::HOST_WINDOW_ID); in GetHostApp()
230 if (widget.GetAttr(UiAttr::HOST_WINDOW_ID) != std::to_string(curWinCache.window_.id_)) { in RetrieveWidget()
248 msg << "Widget: " << widget.GetAttr(UiAttr::DUMMY_ATTRNAME_SELECTION); in RetrieveWidget()
258 … if (widget.GetAttr(UiAttr::TYPE) != visitWidgets_[targetWidgetsIndex_[0]].GetAttr(UiAttr::TYPE)) { in RetrieveWidget()
Dui_model.h255 return GetAttr(UiAttr::VISIBLE) == "true"; in IsVisible()
260 std::string GetAttr(UiAttr attrId) const;
Dui_model.cpp68 std::string Widget::GetAttr(UiAttr attrId) const in GetAttr() function in OHOS::uitest::Widget
Dfrontend_api_handler.cpp1163 auto attrValue = snapshot->GetAttr(kAttr); in GenericComponentAttrGetter()
/test/testfwk/arkxtest/uitest/server/
Delement_node_iterator_impl.cpp271 … LOG_I("widget %{public}s is not visible", widget.GetAttr(UiAttr::ACCESSIBILITY_ID).data()); in WrapperNodeAttrToVec()