提交 df62b715 编写于 作者: Q quanli

quanli1@huawei.com

Signed-off-by: Nquanli <quanli1@huawei.com>
上级 0fadb77d
...@@ -484,7 +484,7 @@ export default function geolocationTest_geo7() { ...@@ -484,7 +484,7 @@ export default function geolocationTest_geo7() {
}) })
} catch (error) { } catch (error) {
console.info("[lbs_js] getCurrentLocation252 promise try err." + JSON.stringify(error)); console.info("[lbs_js] getCurrentLocation252 promise try err." + JSON.stringify(error));
expect(true).assertFalse(); expect(error.code).assertEqual("401");
} }
await sleep(1000); await sleep(1000);
done(); done();
...@@ -560,7 +560,7 @@ export default function geolocationTest_geo7() { ...@@ -560,7 +560,7 @@ export default function geolocationTest_geo7() {
}) })
} catch (error) { } catch (error) {
console.info("[lbs_js] getCurrentLocation272 promise try err." + JSON.stringify(error)); console.info("[lbs_js] getCurrentLocation272 promise try err." + JSON.stringify(error));
expect(true).assertFalse(); expect(error.code).assertEqual("401");
} }
await sleep(1000); await sleep(1000);
done(); done();
...@@ -1135,7 +1135,7 @@ export default function geolocationTest_geo7() { ...@@ -1135,7 +1135,7 @@ export default function geolocationTest_geo7() {
geolocationm.on('locationChange', requestInfo2, locationChange2); geolocationm.on('locationChange', requestInfo2, locationChange2);
} catch (error) { } catch (error) {
console.info("[lbs_js] locationChangerOn292 try err." + JSON.stringify(error)); console.info("[lbs_js] locationChangerOn292 try err." + JSON.stringify(error));
expect(true).assertFalse(); expect(error.code).assertEqual("401");
} }
try { try {
geolocationm.off('locationChange', locationChange2); geolocationm.off('locationChange', locationChange2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册