提交 1100a4bd 编写于 作者: H hui1975

update

Signed-off-by: Nhui1975 <zhaominghui10@huawei.com>
Change-Id: Iecde07cb0fb391a667600d6e7fc0ea414afc75cf
上级 5c9faeb9
......@@ -41,6 +41,8 @@ import SensorJsTest_sensor_27 from './Subscribe_subscribeDeviceOrientation.test.
import SensorJsTest_sensor_53 from './SensorOnOffTest.test_newBarometer.test.js'
import SensorJsTest_sensor_8 from './SensorOnOffTest.test_oldBarometer.test.js'
import SensorJsTest_sensor_26 from './Subscribe_subscribeBarometer.test.js'
import SensorJsTest_sensor_57 from './SensorOnOffTest.test_newPedometer_Detection.test.js'
import SensorJsTest_sensor_17 from './SensorOnOffTest.test_oldPedometer_Detection.test.js'
export default function testsuite() {
SystemParameterTest()
......@@ -72,4 +74,6 @@ export default function testsuite() {
SensorJsTest_sensor_53()
SensorJsTest_sensor_8()
SensorJsTest_sensor_26()
SensorJsTest_sensor_57()
SensorJsTest_sensor_17()
}
......@@ -696,7 +696,7 @@ describe("SensorJsTest_sensor_57", function () {
* @tc.name: newPedometerDetection_SensorJsTest015
* @tc.desc:Verification results of the incorrect parameters of the test interface
*/
it("newPedometerDetection_SensorJsTest015", TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL0, async function (done) {
it("newPedometerDetection_SensorJsTest015", TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL0, async function (done) {
console.info('----------------------newPedometerDetection_SensorJsTest015---------------------------');
let atManager = abilityAccessCtrl.createAtManager();
await atManager.grantUserGrantedPermission(tokenID, permissionNameUser,
......@@ -712,7 +712,7 @@ describe("SensorJsTest_sensor_57", function () {
try {
sensor.on(sensor.SensorId.PEDOMETER_DETECTION, callback);
setTimeout(() => {
sensor.off(sensor.SensorId.PEDOMETER_DETECTION, -5);
sensor.off(sensor.SensorId.PEDOMETER_DETECTION, 5);
done();
}, 4000);
} catch (error) {
......
......@@ -696,7 +696,7 @@ describe("SensorJsTest_sensor_17", function () {
* @tc.name: PedometerDetection_SensorJsTest015
* @tc.desc:Verification results of the incorrect parameters of the test interface
*/
it("PedometerDetection_SensorJsTest015", TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL0, async function (done) {
it("PedometerDetection_SensorJsTest015", TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL0, async function (done) {
console.info('----------------------PedometerDetection_SensorJsTest015---------------------------');
let atManager = abilityAccessCtrl.createAtManager();
await atManager.grantUserGrantedPermission(tokenID, permissionNameUser,
......@@ -712,7 +712,7 @@ describe("SensorJsTest_sensor_17", function () {
try {
sensor.on(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback);
setTimeout(() => {
sensor.off(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION);
sensor.off(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, 5);
done();
}, 4000);
} catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册