提交 b0a0de86 编写于 作者: Y yangguangzhao

web xts add visibility test

Signed-off-by: Nyangguangzhao <yangguangzhao1@huawei.com>
上级 fa83cbee
......@@ -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.
先完成此消息的编辑!
想要评论请 注册