提交 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. ...@@ -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_53 from './SensorOnOffTest.test_newBarometer.test.js'
import SensorJsTest_sensor_8 from './SensorOnOffTest.test_oldBarometer.test.js' import SensorJsTest_sensor_8 from './SensorOnOffTest.test_oldBarometer.test.js'
import SensorJsTest_sensor_26 from './Subscribe_subscribeBarometer.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() { export default function testsuite() {
SystemParameterTest() SystemParameterTest()
...@@ -72,4 +74,6 @@ export default function testsuite() { ...@@ -72,4 +74,6 @@ export default function testsuite() {
SensorJsTest_sensor_53() SensorJsTest_sensor_53()
SensorJsTest_sensor_8() SensorJsTest_sensor_8()
SensorJsTest_sensor_26() SensorJsTest_sensor_26()
SensorJsTest_sensor_57()
SensorJsTest_sensor_17()
} }
...@@ -712,7 +712,7 @@ describe("SensorJsTest_sensor_57", function () { ...@@ -712,7 +712,7 @@ describe("SensorJsTest_sensor_57", function () {
try { try {
sensor.on(sensor.SensorId.PEDOMETER_DETECTION, callback); sensor.on(sensor.SensorId.PEDOMETER_DETECTION, callback);
setTimeout(() => { setTimeout(() => {
sensor.off(sensor.SensorId.PEDOMETER_DETECTION, -5); sensor.off(sensor.SensorId.PEDOMETER_DETECTION, 5);
done(); done();
}, 4000); }, 4000);
} catch (error) { } catch (error) {
......
...@@ -712,7 +712,7 @@ describe("SensorJsTest_sensor_17", function () { ...@@ -712,7 +712,7 @@ describe("SensorJsTest_sensor_17", function () {
try { try {
sensor.on(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback); sensor.on(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, callback);
setTimeout(() => { setTimeout(() => {
sensor.off(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION); sensor.off(sensor.SensorType.SENSOR_TYPE_ID_PEDOMETER_DETECTION, 5);
done(); done();
}, 4000); }, 4000);
} catch (error) { } catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册