提交 ee047f47 编写于 作者: N nwn1007101

update

Signed-off-by: Nnwn1007101 <niyufei@huawei.com>
上级 e30455e8
......@@ -39,7 +39,6 @@ async function changedLocationMode(){
await geolocation.requestEnableLocation().then(async(result) => {
await sleep(3000);
console.info('[lbs_js] test requestEnableLocation promise result: ' + JSON.stringify(result));
expect(result).assertTrue();
}).catch((error) => {
console.info("[lbs_js] promise then error." + JSON.stringify(error));
expect().assertFail();
......@@ -47,7 +46,7 @@ async function changedLocationMode(){
}
});
await geolocation.isLocationEnabled().then(async(result) => {
console.info('[lbs_js] getLocationSwitchState result: ' + JSON.stringify(result));
console.info('[lbs_js]check LocationSwitchState result: ' + JSON.stringify(result));
});
}
......
......@@ -30,7 +30,6 @@ async function changedLocationMode(){
await geolocation.requestEnableLocation().then(async(result) => {
await sleep(3000);
console.info('[lbs_js] test requestEnableLocation promise result: ' + JSON.stringify(result));
expect(result).assertTrue();
}).catch((error) => {
console.info("[lbs_js] promise then error." + JSON.stringify(error));
expect().assertFail();
......@@ -38,7 +37,7 @@ async function changedLocationMode(){
}
});
await geolocation.isLocationEnabled().then(async(result) => {
console.info('[lbs_js] getLocationSwitchState result: ' + JSON.stringify(result));
console.info('[lbs_js] check LocationSwitchState result: ' + JSON.stringify(result));
});
}
......
......@@ -38,9 +38,8 @@ async function changedLocationMode(){
console.info('[lbs_js] getLocationSwitchState result: ' + JSON.stringify(result));
if(!result){
await geolocation.requestEnableLocation().then(async(result) => {
// await sleep(3000);
await sleep(3000);
console.info('[lbs_js] test requestEnableLocation promise result: ' + JSON.stringify(result));
expect(result).assertTrue();
}).catch((error) => {
console.info("[lbs_js] promise then error." + JSON.stringify(error));
expect().assertFail();
......@@ -48,7 +47,7 @@ async function changedLocationMode(){
}
});
await geolocation.isLocationEnabled().then(async(result) => {
console.info('[lbs_js] getLocationSwitchState result: ' + JSON.stringify(result));
console.info('[lbs_js] check LocationSwitchState result: ' + JSON.stringify(result));
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册