提交 9c63cd4c 编写于 作者: Q quanli

quanli1@huawei.com

Signed-off-by: Nquanli <quanli1@huawei.com>
上级 5e7e4e7c
......@@ -246,28 +246,28 @@ export default function actsWifiManagerFunctionsTest() {
"suppState: " + result.suppState + "connState: " + result.connState
+ "macType: " + result.macType);
let state = wifiMg.getLinkedInfo().ConnState;
if (state == wifiMg.connState.SCANNING) {
if (state == wifiMg.ConnState.SCANNING) {
expect(true).assertEqual(state == 0);
}
if (state == wifiMg.connState.CONNECTING) {
if (state == wifiMg.ConnState.CONNECTING) {
expect(true).assertEqual(state == 1);
}
if (state == wifiMg.connState.AUTHENTICATING) {
if (state == wifiMg.ConnState.AUTHENTICATING) {
expect(true).assertEqual(state == 2);
}
if (state == wifiMg.connState.OBTAINING_IPADDR) {
if (state == wifiMg.ConnState.OBTAINING_IPADDR) {
expect(true).assertEqual(state == 3);
}
if (state == wifiMg.connState.CONNECTED) {
if (state == wifiMg.ConnState.CONNECTED) {
expect(true).assertEqual(state == 4);
}
if (state == wifiMg.connState.DISCONNECTING) {
if (state == wifiMg.ConnState.DISCONNECTING) {
expect(true).assertEqual(state == 5);
}
if (state == wifiMg.connState.DISCONNECTED) {
if (state == wifiMg.ConnState.DISCONNECTED) {
expect(true).assertEqual(state == 6);
}
if (state == wifiMg.connState.UNKNOWN) {
if (state == wifiMg.ConnState.UNKNOWN) {
expect(true).assertEqual(state == 7);
}
resolve();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册