mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-27 00:51:07 +00:00
add pagePath test
Signed-off-by: yichengzhao <yichengzhao1@huawei.com> Change-Id: If6b6d477739d0f9a2140f2c6baa1b7d949728c49
This commit is contained in:
parent
097983d32a
commit
0bedcd00ee
@ -908,6 +908,19 @@ HWTEST_F(AccessibilityElementInfoTest, SetInspectorKey_001, TestSize.Level1)
|
||||
GTEST_LOG_(INFO) << "SetInspectorKey_001 end";
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.number: SetPagePath_001
|
||||
* @tc.name: SetPagePath
|
||||
* @tc.desc: Test function SetPagePath, GetPagePath
|
||||
*/
|
||||
HWTEST_F(AccessibilityElementInfoTest, SetPagePath_001, TestSize.Level1)
|
||||
{
|
||||
GTEST_LOG_(INFO) << "SetPagePath_001 start";
|
||||
elementInfo_->SetPagePath("test");
|
||||
EXPECT_STREQ(elementInfo_->GetPagePath().c_str(), "test");
|
||||
GTEST_LOG_(INFO) << "SetPagePath_001 end";
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.number: SetPageId_001
|
||||
* @tc.name: SetPageId
|
||||
|
Loading…
Reference in New Issue
Block a user