提交 9c247f4f 编写于 作者: L liuhaonan2

<liuhaonan8@huawei.com>

Signed-off-by: Nliuhaonan2 <liuhaonan8@huawei.com>
上级 2e6017ad
...@@ -31,7 +31,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -31,7 +31,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_001 start"); console.log("msdp_test_devices_status_001 start");
try { try {
stationary.on("still", ActivityEvent.ENTER_EXIT, 1, (data) => { stationary.on("still", ActivityEvent.ENTER_EXIT, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -51,7 +51,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -51,7 +51,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_002 start"); console.log("msdp_test_devices_status_002 start");
try { try {
stationary.off("still", ActivityEvent.ENTER_EXIT, (data) => { stationary.off("still", ActivityEvent.ENTER_EXIT, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -71,7 +71,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -71,7 +71,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_003 start"); console.log("msdp_test_devices_status_003 start");
try { try {
stationary.once("still", (data) => { stationary.once("still", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -90,7 +90,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -90,7 +90,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_004 start"); console.log("msdp_test_devices_status_004 start");
try { try {
stationary.on("fineStill", ActivityEvent.ENTER_EXIT, 1, (data) => { stationary.on("fineStill", ActivityEvent.ENTER_EXIT, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -109,7 +109,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -109,7 +109,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_005 start"); console.log("msdp_test_devices_status_005 start");
try { try {
stationary.off("fineStill", ActivityEvent.ENTER_EXIT, (data) => { stationary.off("fineStill", ActivityEvent.ENTER_EXIT, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -128,7 +128,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -128,7 +128,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_006 start"); console.log("msdp_test_devices_status_006 start");
try { try {
stationary.once("fineStill", (data) => { stationary.once("fineStill", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -147,7 +147,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -147,7 +147,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_007 start"); console.log("msdp_test_devices_status_007 start");
try { try {
stationary.on("carBluetooth", ActivityEvent.ENTER_EXIT, 1, (data) => { stationary.on("carBluetooth", ActivityEvent.ENTER_EXIT, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -166,7 +166,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -166,7 +166,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_008 start"); console.log("msdp_test_devices_status_008 start");
try { try {
stationary.off("carBluetooth", ActivityEvent.ENTER_EXIT, (data) => { stationary.off("carBluetooth", ActivityEvent.ENTER_EXIT, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -185,7 +185,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -185,7 +185,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_009 start"); console.log("msdp_test_devices_status_009 start");
try { try {
stationary.once("carBluetooth", (data) => { stationary.once("carBluetooth", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -204,7 +204,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -204,7 +204,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_010 start"); console.log("msdp_test_devices_status_010 start");
try { try {
stationary.on("Type_Unknow", ActivityEvent.ENTER_EXIT, 1, (data) => { stationary.on("Type_Unknow", ActivityEvent.ENTER_EXIT, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -223,7 +223,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -223,7 +223,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_011 start"); console.log("msdp_test_devices_status_011 start");
try { try {
stationary.off("Type_Unknow", ActivityEvent.ENTER_EXIT, (data) => { stationary.off("Type_Unknow", ActivityEvent.ENTER_EXIT, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -242,7 +242,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -242,7 +242,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_012 start"); console.log("msdp_test_devices_status_012 start");
try { try {
stationary.once("Type_Unknow", (data) => { stationary.once("Type_Unknow", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -261,7 +261,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -261,7 +261,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_013 start"); console.log("msdp_test_devices_status_013 start");
try { try {
stationary.on("highStill", ActivityEvent.ENTER, 1, (data) => { stationary.on("highStill", ActivityEvent.ENTER, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -280,7 +280,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -280,7 +280,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_014 start"); console.log("msdp_test_devices_status_014 start");
try { try {
stationary.off("highStill", ActivityEvent.ENTER, (data) => { stationary.off("highStill", ActivityEvent.ENTER, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -299,7 +299,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -299,7 +299,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_015 start"); console.log("msdp_test_devices_status_015 start");
try { try {
stationary.once("highStill", (data) => { stationary.once("highStill", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -318,7 +318,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -318,7 +318,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_016 start"); console.log("msdp_test_devices_status_016 start");
try { try {
stationary.on("fineStill", ActivityEvent.ENTER, 1, (data) => { stationary.on("fineStill", ActivityEvent.ENTER, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -337,7 +337,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -337,7 +337,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_017 start"); console.log("msdp_test_devices_status_017 start");
try { try {
stationary.off("fineStill", ActivityEvent.ENTER, (data) => { stationary.off("fineStill", ActivityEvent.ENTER, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -356,7 +356,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -356,7 +356,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_018 start"); console.log("msdp_test_devices_status_018 start");
try { try {
stationary.once("fineStill", (data) => { stationary.once("fineStill", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -375,7 +375,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -375,7 +375,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_019 start"); console.log("msdp_test_devices_status_019 start");
try { try {
stationary.on("carBluetooth", ActivityEvent.ENTER, 1, (data) => { stationary.on("carBluetooth", ActivityEvent.ENTER, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -394,7 +394,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -394,7 +394,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_020 start"); console.log("msdp_test_devices_status_020 start");
try { try {
stationary.off("carBluetooth", ActivityEvent.ENTER, (data) => { stationary.off("carBluetooth", ActivityEvent.ENTER, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -413,7 +413,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -413,7 +413,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_021 start"); console.log("msdp_test_devices_status_021 start");
try { try {
stationary.once("carBluetooth", (data) => { stationary.once("carBluetooth", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -432,7 +432,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -432,7 +432,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_022 start"); console.log("msdp_test_devices_status_022 start");
try { try {
stationary.on("Type_Unknow", ActivityEvent.ENTER, 1, (data) => { stationary.on("Type_Unknow", ActivityEvent.ENTER, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -451,7 +451,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -451,7 +451,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_023 start"); console.log("msdp_test_devices_status_023 start");
try { try {
stationary.off("Type_Unknow", ActivityEvent.ENTER, (data) => { stationary.off("Type_Unknow", ActivityEvent.ENTER, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -470,7 +470,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -470,7 +470,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_024 start"); console.log("msdp_test_devices_status_024 start");
try { try {
stationary.once("Type_Unknow", (data) => { stationary.once("Type_Unknow", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -489,7 +489,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -489,7 +489,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_025 start"); console.log("msdp_test_devices_status_025 start");
try { try {
stationary.on("relativeStill", ActivityEvent.ENTER, 1, (data) => { stationary.on("relativeStill", ActivityEvent.ENTER, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -509,7 +509,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -509,7 +509,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_026 start"); console.log("msdp_test_devices_status_026 start");
try { try {
stationary.off("relativeStill", ActivityEvent.ENTER, (data) => { stationary.off("relativeStill", ActivityEvent.ENTER, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -529,7 +529,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -529,7 +529,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_027 start"); console.log("msdp_test_devices_status_027 start");
try { try {
stationary.once("relativeStill", (data) => { stationary.once("relativeStill", (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -548,7 +548,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -548,7 +548,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_028 start"); console.log("msdp_test_devices_status_028 start");
try { try {
stationary.on("relativeStill", ActivityEvent.EXIT, 1, (data) => { stationary.on("relativeStill", ActivityEvent.EXIT, 1, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
...@@ -568,7 +568,7 @@ describe('DeviceStatusUnitTest', function () { ...@@ -568,7 +568,7 @@ describe('DeviceStatusUnitTest', function () {
console.log("msdp_test_devices_status_029 start"); console.log("msdp_test_devices_status_029 start");
try { try {
stationary.off("relativeStill", ActivityEvent.EXIT, (data) => { stationary.off("relativeStill", ActivityEvent.EXIT, (data) => {
expect(data.state == -1).assertTrue(); expect(data.value == -1).assertTrue();
done(); done();
}) })
} catch (error) { } catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册