提交 6c18c91c 编写于 作者: H huanglei

UserAgent断言 Signed-off-by: huanglei <1580437406@qq.com>

上级 1c3e0322
......@@ -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;
}
......
......@@ -646,16 +646,25 @@ export default function webJsunit() {
Utils.registerEvent("GetCertificateCallback",31,520,done);
sendEventByKey('webcomponent',10,'');
})
/*
*tc.number SUB_ACE_BASIC_ETS_API_060
*tc.name GetStoredGeolocationPromise
*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.
先完成此消息的编辑!
想要评论请 注册