未验证 提交 de2841b6 编写于 作者: O openharmony_ci 提交者: Gitee

!6755 Web添加Visibility XTS测试用例

Merge pull request !6755 from pilipala195/web_visibility_1130
......@@ -55,6 +55,7 @@ struct Index {
@State mixedSwitch:boolean=false
@State mixedAllSwitch:boolean=false
@State overViewFalseHeight:number=0
@State webVisibility: Visibility = Visibility.Visible
onPageShow(){
let valueChangeEvent={
eventId:10,
......@@ -623,6 +624,17 @@ struct Index {
},3000)
break;
}
case "emitWebVisibility":{
this.webVisibility = Visibility.Hidden;
setTimeout(()=>{
this.webVisibility = Visibility.None;
setTimeout(()=>{
this.webVisibility = Visibility.Visible;
Utils.emitEvent(0,90)
}, 3000)
},3000)
break;
}
default:
console.info("can not match case")
}
......@@ -647,6 +659,7 @@ struct Index {
console.info("TextInput click")
})
Web({src:$rawfile('index.html'),controller:this.controller})
.visibility(this.webVisibility)
.javaScriptAccess(this.javaScriptAccess)
.fileAccess(this.fileAccess)
.imageAccess(this.imageAccess)
......
......@@ -668,9 +668,20 @@ export default function webJsunit() {
*tc.desic Gets network cookie manager
*/
it('getCookieManager',0,async function(done){
emitKey="emitGetCookieManager";
emitKey="emitWebVisibility";
Utils.registerEvent("getCookieManager","a=b",89,done);
sendEventByKey('webcomponent',10,'');
})
/*
*tc.number SUB_ACE_BASIC_ETS_API_064
*tc.name webVisibility
*tc.desic Web Visibility test
*/
it('webVisibility',0,async function(done){
emitKey="emitWebVisibility";
Utils.registerEvent("webVisibility", 0, 90, done);
sendEventByKey('webcomponent',10,'');
})
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册