提交 808e92cb 编写于 作者: Y ysheng1234

fixed getcookieManager

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