mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-27 00:51:07 +00:00
commit
6e520cd1ae
@ -16,6 +16,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <memory>
|
||||
#include "accessibility_common_helper.h"
|
||||
#include "accessibility_system_ability_client.h"
|
||||
#include "accessibility_system_ability_client_impl.h"
|
||||
#include "mock_accessibility_element_operator.h"
|
||||
|
||||
|
@ -1335,5 +1335,30 @@ HWTEST_F(AccessibilityElementInfoTest, SetBelongTreeId_001, TestSize.Level1)
|
||||
GTEST_LOG_(INFO) << "SetBelongTreeId_001 end";
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.number: SetAccessibilityGroup_001
|
||||
* @tc.name: SetAccessibilityGroup
|
||||
* @tc.desc: Test function SetAccessibilityGroup, GetAccessibilityGroup
|
||||
*/
|
||||
HWTEST_F(AccessibilityElementInfoTest, SetAccessibilityGroup_001, TestSize.Level1)
|
||||
{
|
||||
GTEST_LOG_(INFO) << "SetAccessibilityGroup_001 start";
|
||||
elementInfo_->SetAccessibilityGroup(false);
|
||||
EXPECT_FALSE(elementInfo_->GetAccessibilityGroup());
|
||||
GTEST_LOG_(INFO) << "SetAccessibilityGroup_001 end";
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.number: SetAccessibilityLevel_001
|
||||
* @tc.name: SetAccessibilityLevel
|
||||
* @tc.desc: Test function SetAccessibilityLevel, GetAccessibilityLevel
|
||||
*/
|
||||
HWTEST_F(AccessibilityElementInfoTest, SetAccessibilityLevel_001, TestSize.Level1)
|
||||
{
|
||||
GTEST_LOG_(INFO) << "SetAccessibilityLevel_001 start";
|
||||
elementInfo_->SetAccessibilityLevel("test");
|
||||
EXPECT_STREQ(elementInfo_->GetAccessibilityLevel().c_str(), "test");
|
||||
GTEST_LOG_(INFO) << "SetAccessibilityLevel_001 end";
|
||||
}
|
||||
} // namespace Accessibility
|
||||
} // namespace OHOS
|
Loading…
Reference in New Issue
Block a user