提交 205e0c86 编写于 作者: M mayunteng_1

xts代码优化

Signed-off-by: Nmayunteng_1 <mayunteng@huawei.com>
Change-Id: I9893dda7ce1b78bc217a65635c1f1f2c4d447f5f
上级 7179160e
...@@ -35,7 +35,7 @@ describe('MultimodalInput_Pointer_test', function () { ...@@ -35,7 +35,7 @@ describe('MultimodalInput_Pointer_test', function () {
expect(false).assertTrue(); expect(false).assertTrue();
} else { } else {
console.info(`MultimodalInput_Pointer_test::SetPointerVisibleTest_001 success`); console.info(`MultimodalInput_Pointer_test::SetPointerVisibleTest_001 success`);
expect(true).assertTure(); expect(true).assertTrue();
} }
}; };
pointer.setPointerVisible(false, callback); pointer.setPointerVisible(false, callback);
...@@ -43,8 +43,8 @@ describe('MultimodalInput_Pointer_test', function () { ...@@ -43,8 +43,8 @@ describe('MultimodalInput_Pointer_test', function () {
pointer.isPointerVisible().then(data => { pointer.isPointerVisible().then(data => {
console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 success, data=${JSON.stringify(data)}`); console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 success, data=${JSON.stringify(data)}`);
expect(data == false).assertTrue(); expect(data == false).assertTrue();
}, data => { }, err => {
console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 failed, err=${JSON.stringify(data)}`); console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 failed, err=${JSON.stringify(err)}`);
expect(false).assertTrue(); expect(false).assertTrue();
}); });
console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 exit`); console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 exit`);
...@@ -55,9 +55,9 @@ describe('MultimodalInput_Pointer_test', function () { ...@@ -55,9 +55,9 @@ describe('MultimodalInput_Pointer_test', function () {
pointer.setPointerVisible(true).then(data => { pointer.setPointerVisible(true).then(data => {
console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_002 success, data=${JSON.stringify(data)}`); console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_002 success, data=${JSON.stringify(data)}`);
expect(true).assertTrue(); expect(true).assertTrue();
}, data => { }, err => {
console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_002 failed, err=${JSON.stringify(data)}`); console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_002 failed, err=${JSON.stringify(err)}`);
expect(false).assertTure(); expect(false).assertTrue();
}); });
var callback = function (err, data) { var callback = function (err, data) {
...@@ -91,7 +91,7 @@ describe('MultimodalInput_Pointer_test', function () { ...@@ -91,7 +91,7 @@ describe('MultimodalInput_Pointer_test', function () {
expect(true).assertTrue(); expect(true).assertTrue();
console.info(`SetPointerStyle_001 success`); console.info(`SetPointerStyle_001 success`);
}).catch((err) => { }).catch((err) => {
expect(false).assertTure(); expect(false).assertTrue();
console.info("promise::catch", err); console.info("promise::catch", err);
}); });
}) })
...@@ -144,7 +144,7 @@ describe('MultimodalInput_Pointer_test', function () { ...@@ -144,7 +144,7 @@ describe('MultimodalInput_Pointer_test', function () {
expect(data).assertTrue('Number'); expect(data).assertTrue('Number');
}).catch((err) => { }).catch((err) => {
console.info("promise::catch", err); console.info("promise::catch", err);
expect(false).assertTure(); expect(false).assertTrue();
}); });
}) })
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册