You need to sign in or sign up before continuing.
提交 6bd913a1 编写于 作者: G gaoxi

hm xts update

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 e00b9d52
...@@ -128,14 +128,14 @@ export default function observerJsunit() { ...@@ -128,14 +128,14 @@ export default function observerJsunit() {
*/ */
it('Telephony_observer_observer_off_networkStateChange_0100', 0, async function (done) { it('Telephony_observer_observer_off_networkStateChange_0100', 0, async function (done) {
console.log("************* Telephony_observer_observer_off_networkStateChange_0100 Test start *************") console.log("************* Telephony_observer_observer_off_networkStateChange_0100 Test start *************")
observer.off('networkStateChange', (networkState) => { let callback = data => {
expect().assertFail() console.log("on networkStateChange, data:" + JSON.stringify(data));
done() }
return observer.on('networkStateChange', callback);
}) observer.off('networkStateChange', callback);
setTimeout(timeout, 3000) expect(true).assertTrue();
done();
console.log("************* Telephony_observer_observer_off_networkStateChange_0100 Test end *************") console.log("************* Telephony_observer_observer_off_networkStateChange_0100 Test end *************")
done()
}) })
/* /*
...@@ -181,14 +181,14 @@ export default function observerJsunit() { ...@@ -181,14 +181,14 @@ export default function observerJsunit() {
*/ */
it('Telephony_observer_observer_off_signalInfoChange_0100', 0, async function (done) { it('Telephony_observer_observer_off_signalInfoChange_0100', 0, async function (done) {
console.log("************* Telephony_observer_observer_off_signalInfoChange_0100 Test start *************") console.log("************* Telephony_observer_observer_off_signalInfoChange_0100 Test start *************")
observer.off('signalInfoChange', (networkState) => { let callback = data => {
expect().assertFail() console.log("on signalInfoChange, data:" + JSON.stringify(data));
done() }
return observer.on('signalInfoChange', callback);
}) observer.off('signalInfoChange', callback);
setTimeout(timeout, 3000) expect(true).assertTrue();
done();
console.log("************* Telephony_observer_observer_off_signalInfoChange_0100 Test end *************") console.log("************* Telephony_observer_observer_off_signalInfoChange_0100 Test end *************")
done()
}) })
...@@ -236,14 +236,14 @@ export default function observerJsunit() { ...@@ -236,14 +236,14 @@ export default function observerJsunit() {
*/ */
it('Telephony_observer_observer_off_cellularDataConnectionStateChange_0100', 0, async function (done) { it('Telephony_observer_observer_off_cellularDataConnectionStateChange_0100', 0, async function (done) {
console.log("************* Telephony_observer_observer_off_cellularDataConnectionStateChange_0100 Test start *************") console.log("************* Telephony_observer_observer_off_cellularDataConnectionStateChange_0100 Test start *************")
observer.off('cellularDataConnectionStateChange', (data) => { let callback = value => {
expect().assertFail() console.log("on cellularDataConnectionStateChange, state:" + value.state + ", network:" + value.network);
done() }
return observer.on('cellularDataConnectionStateChange', callback);
}) observer.off('cellularDataConnectionStateChange', callback);
setTimeout(timeout, 3000) expect(true).assertTrue();
done();
console.log("************* Telephony_observer_observer_off_cellularDataConnectionStateChange_0100 Test end *************") console.log("************* Telephony_observer_observer_off_cellularDataConnectionStateChange_0100 Test end *************")
done()
}) })
/* /*
...@@ -289,14 +289,14 @@ export default function observerJsunit() { ...@@ -289,14 +289,14 @@ export default function observerJsunit() {
*/ */
it('Telephony_observer_observer_off_cellularDataFlowChange_0100', 0, async function (done) { it('Telephony_observer_observer_off_cellularDataFlowChange_0100', 0, async function (done) {
console.log("************* Telephony_observer_observer_off_cellularDataFlowChange_0100 Test start *************") console.log("************* Telephony_observer_observer_off_cellularDataFlowChange_0100 Test start *************")
observer.off('cellularDataFlowChange', (data) => { let callback = data => {
expect().assertFail() console.log("on cellularDataFlowChange, data:" + JSON.stringify(data));
done() }
return observer.on('cellularDataFlowChange', callback);
}) observer.off('cellularDataFlowChange', callback);
setTimeout(timeout, 3000) expect(true).assertTrue();
done();
console.log("************* Telephony_observer_observer_off_cellularDataFlowChange_0100 Test end *************") console.log("************* Telephony_observer_observer_off_cellularDataFlowChange_0100 Test end *************")
done()
}) })
/* /*
...@@ -342,14 +342,14 @@ export default function observerJsunit() { ...@@ -342,14 +342,14 @@ export default function observerJsunit() {
*/ */
it('Telephony_observer_observer_off_callStateChange_0100', 0, async function (done) { it('Telephony_observer_observer_off_callStateChange_0100', 0, async function (done) {
console.log("************* Telephony_observer_observer_off_callStateChange_0100 Test start *************") console.log("************* Telephony_observer_observer_off_callStateChange_0100 Test start *************")
observer.off('callStateChange', (data) => { let callback = value => {
expect().assertFail() console.log("on callStateChange, state:" + value.state + ", number:" + value.number);
done() }
return observer.on('callStateChange', callback);
}) observer.off('callStateChange', callback);
setTimeout(timeout, 3000) expect(true).assertTrue();
done();
console.log("************* Telephony_observer_observer_off_callStateChange_0100 Test end *************") console.log("************* Telephony_observer_observer_off_callStateChange_0100 Test end *************")
done()
}) })
/* /*
...@@ -395,14 +395,14 @@ export default function observerJsunit() { ...@@ -395,14 +395,14 @@ export default function observerJsunit() {
*/ */
it('Telephony_observer_observer_off_simStateChange_0100', 0, async function (done) { it('Telephony_observer_observer_off_simStateChange_0100', 0, async function (done) {
console.log("************* Telephony_observer_observer_off_simStateChange_0100 Test start *************") console.log("************* Telephony_observer_observer_off_simStateChange_0100 Test start *************")
observer.off('simStateChange', (data) => { let callback = data => {
expect().assertFail() console.log("on simStateChange, data:" + JSON.stringify(data));
done() }
return observer.on('simStateChange', callback);
}) observer.off('simStateChange',callback);
setTimeout(timeout, 3000) expect(true).assertTrue();
done();
console.log("************* Telephony_observer_observer_off_simStateChange_0100 Test end *************") console.log("************* Telephony_observer_observer_off_simStateChange_0100 Test end *************")
done()
}) })
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册