mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
!48932 【UT】web_pattern用例修改
Merge pull request !48932 from wangweiyuan/master
This commit is contained in:
commit
5375e7d49d
@ -685,19 +685,42 @@ HWTEST_F(WebPatternTestNgSupplement, SetAccessibilityState001, TestSize.Level1)
|
||||
webPattern->OnModifyDone();
|
||||
ASSERT_NE(webPattern->delegate_, nullptr);
|
||||
|
||||
webPattern->accessibilityState_ = false;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_FALSE(webPattern->accessibilityState_);
|
||||
webPattern->accessibilityState_ = true;
|
||||
webPattern->SetAccessibilityState(true);
|
||||
EXPECT_TRUE(webPattern->accessibilityState_);
|
||||
AceApplicationInfo::GetInstance().SetAccessibilityEnabled(true);
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_TRUE(webPattern->accessibilityState_);
|
||||
AceApplicationInfo::GetInstance().SetAccessibilityEnabled(false);
|
||||
webPattern->inspectorAccessibilityEnable_ = false;
|
||||
webPattern->textBlurAccessibilityEnable_ = false;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_FALSE(webPattern->accessibilityState_);
|
||||
webPattern->inspectorAccessibilityEnable_ = false;
|
||||
webPattern->textBlurAccessibilityEnable_ = false;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_FALSE(webPattern->accessibilityState_);
|
||||
webPattern->inspectorAccessibilityEnable_ = false;
|
||||
webPattern->textBlurAccessibilityEnable_ = true;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_FALSE(webPattern->accessibilityState_);
|
||||
webPattern->inspectorAccessibilityEnable_ = true;
|
||||
webPattern->textBlurAccessibilityEnable_ = false;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_FALSE(webPattern->accessibilityState_);
|
||||
webPattern->inspectorAccessibilityEnable_ = true;
|
||||
webPattern->textBlurAccessibilityEnable_ = true;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_FALSE(webPattern->accessibilityState_);
|
||||
webPattern->accessibilityState_ = true;
|
||||
webPattern->inspectorAccessibilityEnable_ = false;
|
||||
webPattern->textBlurAccessibilityEnable_ = true;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_TRUE(webPattern->accessibilityState_);
|
||||
webPattern->inspectorAccessibilityEnable_ = true;
|
||||
webPattern->textBlurAccessibilityEnable_ = false;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_TRUE(webPattern->accessibilityState_);
|
||||
webPattern->inspectorAccessibilityEnable_ = true;
|
||||
webPattern->textBlurAccessibilityEnable_ = true;
|
||||
webPattern->SetAccessibilityState(false);
|
||||
EXPECT_TRUE(webPattern->accessibilityState_);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user