未验证 提交 812101a0 编写于 作者: O openharmony_ci 提交者: Gitee

!7086 【location】脚本优化

Merge pull request !7086 from 权力/myfeature
......@@ -107,9 +107,14 @@ describe('geolocationTest_geo5', function () {
* @tc.level Level 2
*/
it('SUB_HSS_LocationSystem_Geo_1900', 0, function () {
let geocoder1 = geolocationm.isGeocoderAvailable();
console.info('[lbs_js] isGeocoderAvailable result: ' + JSON.stringify(geocoder1));
expect(true).assertEqual(JSON.stringify(geocoder1) != null);
try {
let geocoder1 = geolocationm.isGeocoderAvailable();
console.info('[lbs_js] isGeocoderAvailable result: ' + JSON.stringify(geocoder1));
expect(true).assertEqual(JSON.stringify(geocoder1) != null);
} catch (error) {
console.info('[lbs_js] isGeocoderAvailable err:' + JSON.stringify(error));
expect(true).assertEqual(JSON.stringify(error) != null);
}
});
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册