提交 f447d13a 编写于 作者: H huanglei 提交者: 黄磊

fixed 6c18c91c from https://gitee.com/huanglei-AAA/xts_acts/pulls/9812

UserAgent断言 Signed-off-by: huanglei <1580437406@qq.com>
上级 106f7b66
......@@ -948,6 +948,17 @@ struct Index {
}
break;
}
case "emitGetCustomUserAgent":{
try {
let setUA = "userAgent"
this.controller.setCustomUserAgent(setUA)
Utils.emitEvent(this.controller.getCustomUserAgent(), 522);
} catch (error) {
console.error(`ErrorCode: ${error.code}, Message: ${error.message}`);
}
break;
}
......
......@@ -652,9 +652,19 @@ export default function webJsunit() {
*tc.desic Save current page
*/
it('GetStoredGeolocationPromise',0,async function(done){
emitKey="emitGetStoredGeolocationPromise";
emitKey="emitGetCustomUserAgent";
Utils.registerEvent("GetStoredGeolocationPromise","file:///",521,done);
sendEventByKey('webcomponent',10,'');
})
/*
*tc.number SUB_ACE_BASIC_ETS_API_061
*tc.name getCustomUserAgent
*tc.desic Save current page
*/
it('GetCustomUserAgent',0,async function(done){
emitKey="emitGetCustomUserAgent";
Utils.registerEvent("GetCustomUserAgent","userAgent",522,done);
sendEventByKey('webcomponent',10,'');
})
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册