diff --git a/location/geolocation_standard/src/main/js/default/test/GeocoderTest.test.js b/location/geolocation_standard/src/main/js/default/test/GeocoderTest.test.js index bd00cc7b9b5111d59219a68171a9f2660e75e1a0..bfd342b072b921118e21cf5cdae78de6b665d8c4 100644 --- a/location/geolocation_standard/src/main/js/default/test/GeocoderTest.test.js +++ b/location/geolocation_standard/src/main/js/default/test/GeocoderTest.test.js @@ -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)); }); } diff --git a/location/geolocation_standard/src/main/js/default/test/Geolocation.test.js b/location/geolocation_standard/src/main/js/default/test/Geolocation.test.js index cfd29cc9c209e24122ea4249161e3d25f7b98203..456e3b3ba4b39232997f876c6dd8c048c0f095cc 100644 --- a/location/geolocation_standard/src/main/js/default/test/Geolocation.test.js +++ b/location/geolocation_standard/src/main/js/default/test/Geolocation.test.js @@ -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)); }); } diff --git a/location/geolocation_standard/src/main/js/default/test/LocationTest.test.js b/location/geolocation_standard/src/main/js/default/test/LocationTest.test.js index a3b33ca35fc4c4f5efb8ca1582cbae0d65d78e5f..c14e9529745fb181c3592aaacd163e70c72ed404 100644 --- a/location/geolocation_standard/src/main/js/default/test/LocationTest.test.js +++ b/location/geolocation_standard/src/main/js/default/test/LocationTest.test.js @@ -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)); }); }