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

!5891 【OpenHarmony master】【web子系统】修改错误xts用例 getCookieManager

Merge pull request !5891 from 姚胜/master
......@@ -759,8 +759,11 @@ struct Index {
break;
}
case "emitGetCookieManager":{
let getCookieManagerCalled = this.controller.getCookieManager().setCookie("https://weibo.com","a=b")
Utils.emitEvent(getCookieManagerCalled,89)
this.controller.getCookieManager().setCookie("https://weibo.com","a=b")
setTimeout(()=>{
let getCookieManagerCalled = this.controller.getCookieManager().getCookie('https://weibo.com')
Utils.emitEvent(getCookieManagerCalled,89)
},3000)
break;
}
default:
......
......@@ -669,7 +669,7 @@ export default function webJsunit() {
*/
it('getCookieManager',0,async function(done){
emitKey="emitGetCookieManager";
Utils.registerEvent("getCookieManager",true,89,done);
Utils.registerEvent("getCookieManager","a=b",89,done);
sendEventByKey('webcomponent',10,'');
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册