Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
e50d52fb
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
e50d52fb
编写于
7月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4610 【communication】【同步到release】修改WIFI JS L2测试用例3
Merge pull request !4610 from 权力/myfuture
上级
e30455e8
fbe9eb03
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
215 addition
and
187 deletion
+215
-187
communication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
...ication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
+94
-133
communication/wifi_standard/src/main/js/default/test/WifiSta.test.js
...on/wifi_standard/src/main/js/default/test/WifiSta.test.js
+121
-54
未找到文件。
communication/wifi_p2p/src/main/js/default/test/WifiP2P.test.js
浏览文件 @
e50d52fb
...
...
@@ -18,12 +18,14 @@ import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from '
import
wifi
from
'
@ohos.wifi
'
function
sleep
(
delay
)
{
return
new
Promise
(
resovle
=>
setTimeout
(
resovle
,
delay
))
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
>
delay
)
{
break
;
}
}
function
checkWifiPowerOn
(){
console
.
info
(
"
wifi_test/wifi status:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
console
.
info
(
"
Wifi_test/wifi status:
"
+
wifi
.
isWifiActive
());
}
let
GroupOwnerBand
=
{
...
...
@@ -34,9 +36,12 @@ let GroupOwnerBand = {
describe
(
'
ACTS_WifiTest
'
,
function
()
{
beforeEach
(
function
()
{
console
.
info
(
"
beforeEach start
"
);
checkWifiPowerOn
();
})
afterEach
(
function
()
{
afterEach
(
async
function
()
{
console
.
info
(
"
afterEach start
"
);
})
/**
...
...
@@ -45,31 +50,29 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test createGroup and getCurrentGroup promise infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0001
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
WifiP2PConfig
=
{
deviceAddress
:
"
00:00:00:00:00:00
"
,
netId
:
-
1
,
passphrase
:
"
12345678
"
,
groupName
:
"
AAAZZZ
"
,
groupName
:
"
AAAZZZ
123
"
,
goBand
:
0
};
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
let
addConfig
=
wifi
.
createGroup
(
WifiP2PConfig
);
await
sleep
(
2000
);
console
.
info
(
"
[wifi_test] test createGroup end.
"
+
addConfig
);
sleep
(
2000
);
expect
(
addConfig
).
assertTrue
();
await
wifi
.
getCurrentGroup
()
.
then
(
(
data
)
=>
{
wifi
.
getCurrentGroup
()
.
then
(
data
=>
{
let
resultLength
=
Object
.
keys
(
data
).
length
;
console
.
info
(
"
[wifi_test] getCurrentGroup [promise] result ->
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
resultLength
!=
0
);
}).
catch
((
error
)
=>
{
console
.
info
(
"
[wifi_js]getCurrentGroup promise then error.
"
+
JSON
.
stringify
(
error
));
expect
().
assertFail
();
});
done
();
let
removeConfig
=
wifi
.
removeGroup
();
expect
(
removeConfig
).
assertTrue
();
});
done
()
})
/**
...
...
@@ -78,40 +81,32 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test getCurrentGroup callback infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0002
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
WifiP2PConfig
=
{
deviceAddress
:
"
00:00:00:00:00:00
"
,
netId
:
-
1
,
passphrase
:
"
12345678
"
,
groupName
:
"
AAAZZZ
"
,
groupName
:
"
AAAZZZ
123
"
,
goBand
:
0
};
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
let
addConfig
=
wifi
.
createGroup
(
WifiP2PConfig
);
await
sleep
(
2000
);
sleep
(
2000
);
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
addConfig
);
expect
(
addConfig
).
assertTrue
();
await
wifi
.
getCurrentGroup
(
wifi
.
getCurrentGroup
(
(
err
,
result
)
=>
{
if
(
err
)
{
console
.
error
(
'
wifi_test / failed to get getCurrentGroup:
'
+
JSON
.
stringify
(
err
));
expect
().
assertFail
();
return
;
}
console
.
info
(
"
[wifi_test] getCurrentGroup [callback] ->
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
isP2pGo:
"
+
result
.
isP2pGo
+
"
deviceName:
"
+
result
.
ownerInfo
.
deviceName
+
"
deviceAddress:
"
+
result
.
ownerInfo
.
deviceAddress
+
"
primaryDeviceType:
"
+
result
.
ownerInfo
.
primaryDeviceType
+
"
deviceStatus:
"
+
result
.
ownerInfo
.
deviceStatus
+
"
groupCapabilitys:
"
+
result
.
ownerInfo
.
groupCapabilitys
+
"
passphrase:
"
+
result
.
passphrase
+
"
interface:
"
+
result
.
interface
+
"
groupName:
"
+
result
.
groupName
+
"
clientDevices:
"
+
result
.
clientDevices
+
"
networkId:
"
+
result
.
networkId
+
"
frequency:
"
+
result
.
frequency
+
"
goIpAddress:
"
+
result
.
goIpAddress
);
let
removeConfig
=
wifi
.
removeGroup
();
expect
(
removeConfig
).
assertTrue
();
}
else
{
console
.
info
(
"
[wifi_test] getCurrentGroup [callback] ->
"
+
JSON
.
stringify
(
result
));
let
removeConfig
=
wifi
.
removeGroup
();
expect
(
removeConfig
).
assertTrue
();
}
done
();
});
})
...
...
@@ -122,32 +117,29 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test createGroup 2.4G band and getCurrentGroup infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0003
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
WifiP2PConfig2
=
{
deviceAddress
:
"
00:00:00:00:00:00
"
,
netId
:
-
1
,
passphrase
:
"
12345678
"
,
groupName
:
"
AAAZZZ
"
,
groupName
:
"
AAAZZZ
123
"
,
goBand
:
1
};
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
let
addConfig
=
wifi
.
createGroup
(
WifiP2PConfig2
);
await
sleep
(
2000
);
sleep
(
2000
);
console
.
info
(
"
[wifi_test] test createGroup3 result.
"
+
addConfig
)
expect
(
addConfig
).
assertTrue
();
await
wifi
.
getCurrentGroup
()
.
then
(
(
data
)
=>
{
.
then
(
data
=>
{
let
resultLength
=
Object
.
keys
(
data
).
length
;
console
.
info
(
"
[wifi_test] getCurrentGroup [promise] result ->
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
resultLength
!=
0
);
}).
catch
((
error
)
=>
{
console
.
info
(
"
[wifi_test]getCurrentGroup promise then error.
"
+
JSON
.
stringify
(
error
));
expect
(
error
).
assertFail
();
});
let
removeConfig
=
wifi
.
removeGroup
();
expect
(
removeConfig
).
assertTrue
();
done
();
let
removeConfig
=
wifi
.
removeGroup
();
expect
(
removeConfig
).
assertTrue
();
});
done
()
})
/**
...
...
@@ -156,29 +148,29 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test create PersistentGroup infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0004
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
WifiP2PConfig
=
{
deviceAddress
:
"
00:00:00:00:00:00
"
,
netId
:
-
2
,
passphrase
:
"
12345678
"
,
groupName
:
"
AAAZZZ
"
,
groupName
:
"
AAAZZZ
123
"
,
goBand
:
0
};
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
let
addConfig
=
wifi
.
createGroup
(
WifiP2PConfig
);
await
sleep
(
2000
);
sleep
(
2000
);
console
.
info
(
"
[wifi_test] test p2pConnect result.
"
+
addConfig
);
expect
(
addConfig
).
assertTrue
();
await
wifi
.
getCurrentGroup
()
.
then
((
data
)
=>
{
let
resultLength
=
Object
.
keys
(
data
).
length
;
console
.
info
(
"
[wifi_test] getCurrentGroup [promise] result ->
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
resultLength
!=
0
);
let
resultLength
=
Object
.
keys
(
data
).
length
;
console
.
info
(
"
[wifi_test] getCurrentGroup [promise] result ->
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
resultLength
!=
0
);
let
removeConfig
=
wifi
.
removeGroup
();
expect
(
removeConfig
).
assertTrue
();
});
let
removeConfig
=
wifi
.
removeGroup
();
expect
(
removeConfig
).
assertTrue
();
});
done
();
})
...
...
@@ -188,19 +180,18 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test p2pConnect infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0005
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
WifiP2PConfig3
=
{
deviceAddress
:
"
00:00:00:00:00:00
"
,
netId
:
-
2
,
passphrase
:
"
12345678
"
,
groupName
:
"
AAAZZZ
"
,
goBand
:
0
goBand
:
2
};
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
let
scanConfig
=
wifi
.
startDiscoverDevices
();
await
sleep
(
2000
);
sleep
(
2000
);
expect
(
scanConfig
).
assertTrue
();
let
connConfig
=
wifi
.
p2pConnect
(
WifiP2PConfig3
);
...
...
@@ -217,20 +208,13 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test getP2pLinkedInfo promise infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0006
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
P2pConnectState
=
{
DISCONNECTED
:
0
,
CONNECTED
:
1
,
};
await
wifi
.
getP2pLinkedInfo
()
.
then
(
(
data
)
=>
{
.
then
(
data
=>
{
let
resultLength
=
Object
.
keys
(
data
).
length
;
console
.
info
(
"
[wifi_test] getP2pLinkedInfo [promise] result ->
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
resultLength
!=
0
);
}).
catch
((
error
)
=>
{
console
.
info
(
"
[wifi_test]getP2pLinkedInfo promise then error.
"
+
JSON
.
stringify
(
error
));
expect
(
error
).
assertFail
();
});
done
()
});
done
();
})
...
...
@@ -241,24 +225,24 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test getP2pLinkedInfo callback infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0007
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
P2pConnectState
=
{
DISCONNECTED
:
0
,
CONNECTED
:
1
,
};
await
wifi
.
getP2pLinkedInfo
((
err
,
result
)
=>
{
wifi
.
getP2pLinkedInfo
((
err
,
result
)
=>
{
if
(
err
)
{
console
.
error
(
'
failed to getP2pLinkedInfo callback
'
+
JSON
.
stringify
(
err
));
return
;
}
else
{
console
.
info
(
"
[wifi_test] getP2pLinkedInfo [callback] ->
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
connectState:
"
+
result
.
connectState
+
"
isGroupOwner:
"
+
result
.
isGroupOwner
+
"
groupOwnerAddr:
"
+
result
.
groupOwnerAddr
);
expect
(
false
).
assertEqual
(
result
.
connectState
==
P2pConnectState
.
CONNECTED
);
}
console
.
info
(
"
[wifi_test] getP2pLinkedInfo [callback] ->
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
connectState:
"
+
result
.
connectState
+
"
isGroupOwner:
"
+
result
.
isGroupOwner
+
"
groupOwnerAddr:
"
+
result
.
groupOwnerAddr
);
expect
(
false
).
assertEqual
(
result
.
connectState
==
P2pConnectState
.
CONNECTED
);
done
();
});
done
();
})
/**
...
...
@@ -267,9 +251,8 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test p2pCancelConnect infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0008
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
disConn
=
wifi
.
p2pCancelConnect
();
await
sleep
(
2000
);
sleep
(
2000
);
console
.
info
(
"
[wifi_test] test p2pCancelConnect result.
"
+
disConn
);
expect
(
disConn
).
assertTrue
();
let
removeConfig
=
wifi
.
removeGroup
();
...
...
@@ -284,19 +267,10 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test getP2pPeerDevices infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0009
'
,
0
,
async
function
(
done
){
checkWifiPowerOn
();
let
P2pDeviceStatus
=
{
CONNECTED
:
0
,
INVITED
:
1
,
FAILED
:
2
,
AVAILABLE
:
3
,
UNAVAILABLE
:
4
,
};
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
let
scanConfig
=
wifi
.
startDiscoverDevices
();
await
sleep
(
2000
);
sleep
(
2000
);
expect
(
scanConfig
).
assertTrue
();
await
wifi
.
getP2pPeerDevices
()
.
then
((
data
)
=>
{
...
...
@@ -317,7 +291,6 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test getP2pPeerDevices infos
*/
it
(
'
SUB_Communication_WiFi_P2P_Config_0010
'
,
0
,
async
function
(
done
){
checkWifiPowerOn
();
let
P2pDeviceStatus
=
{
CONNECTED
:
0
,
INVITED
:
1
,
...
...
@@ -329,40 +302,40 @@ describe('ACTS_WifiTest', function () {
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
let
scanConfig
=
wifi
.
startDiscoverDevices
();
await
sleep
(
2000
);
sleep
(
2000
);
expect
(
scanConfig
).
assertTrue
();
await
wifi
.
getP2pPeerDevices
((
err
,
result
)
=>
{
if
(
err
)
{
console
.
error
(
'
failed to getP2pPeerDevices infos callback because
'
+
JSON
.
stringify
(
err
));
return
;
}
console
.
info
(
"
[wifi_test] getP2pPeerDevices [callback] ->
"
+
JSON
.
stringify
(
result
))
;
let
len
=
Object
.
keys
(
result
).
length
;
for
(
let
j
=
0
;
j
<
len
;
++
j
)
{
console
.
info
(
"
deviceName:
"
+
result
[
j
].
deviceName
+
"
deviceAddress:
"
+
result
[
j
].
deviceAddress
+
"
primaryDeviceType:
"
+
result
[
j
].
primaryDeviceType
+
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
+
"
groupCapabilitys:
"
+
result
[
j
].
groupCapabilitys
);
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
UNAVAILABLE
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
CONNECTED
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
INVITED
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
FAILED
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
AVAILABLE
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
else
{
console
.
info
(
"
[wifi_test] getP2pPeerDevices [callback] ->
"
+
JSON
.
stringify
(
result
));
let
len
=
Object
.
keys
(
result
).
length
;
for
(
let
j
=
0
;
j
<
len
;
++
j
)
{
console
.
info
(
"
deviceName:
"
+
result
[
j
].
deviceName
+
"
deviceAddress:
"
+
result
[
j
].
deviceAddress
+
"
primaryDeviceType:
"
+
result
[
j
].
primaryDeviceType
+
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
+
"
groupCapabilitys:
"
+
result
[
j
].
groupCapabilitys
);
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
UNAVAILABLE
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
CONNECTED
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
INVITED
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
FAILED
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
if
(
result
[
j
].
deviceStatus
==
P2pDeviceStatus
.
AVAILABLE
){
console
.
info
(
"
deviceStatus:
"
+
result
[
j
].
deviceStatus
);
}
}
let
stopScan
=
wifi
.
stopDiscoverDevices
();
expect
(
stopScan
).
assertTrue
();
}
let
stopScan
=
wifi
.
stopDiscoverDevices
();
expect
(
stopScan
).
assertTrue
();
done
();
});
})
...
...
@@ -373,7 +346,6 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test p2pStateChange callback
*/
it
(
'
SUB_Communication_WiFi_P2P_P2pStateChange_0001
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
await
wifi
.
on
(
'
p2pStateChange
'
,
result
=>
{
console
.
info
(
"
onP2pStateChange callback, result:
"
+
JSON
.
stringify
(
result
));
expect
(
true
).
assertEqual
(
result
!=
null
);
...
...
@@ -394,8 +366,7 @@ describe('ACTS_WifiTest', function () {
* @tc.name SUB_Communication_WiFi_P2P_p2pConnectionChange_0002
* @tc.desc Test p2pConnectionChange callback
*/
it
(
'
SUB_Communication_WiFi_P2P_p2pConnectionChange_0002
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
it
(
'
SUB_Communication_WiFi_P2P_p2pConnectionChange_0002
'
,
0
,
async
function
(
done
)
{
await
wifi
.
on
(
'
p2pConnectionChange
'
,
recvP2pConnectionChangeFunc
=>
{
console
.
info
(
"
[wifi_test] p2pConnectionChange result ->
"
+
recvP2pConnectionChangeFunc
);
expect
(
true
).
assertEqual
(
recvP2pConnectionChangeFunc
!=
null
);
...
...
@@ -439,12 +410,11 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test p2pPeerDeviceChange callback
*/
it
(
'
SUB_Communication_WiFi_P2P_p2pPeerDeviceChange_0004
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
recvP2pPeerDeviceChangeFunc
=
result
=>
{
console
.
info
(
"
wifi_test / p2p peer device change receive event:
"
+
JSON
.
stringify
(
result
));
wifi
.
getP2pDevices
((
err
,
data
)
=>
{
if
(
err
)
{
console
.
error
(
'
wifi_test / failed to get get
CurrentGroup
:
'
+
JSON
.
stringify
(
err
));
console
.
error
(
'
wifi_test / failed to get get
P2pDevices
:
'
+
JSON
.
stringify
(
err
));
return
;
}
console
.
info
(
"
wifi_test / getP2pDevices [callback] ->
"
+
JSON
.
stringify
(
data
));
...
...
@@ -485,9 +455,8 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test p2pPersistentGroupChange callback
*/
it
(
'
SUB_Communication_WiFi_P2P_p2pPersistentGroupChange_0005
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
let
recvP2pPersistentGroupChangeFunc
=
result
=>
{
console
.
info
(
"
wifi_test / p2p persistent group change receive event
"
+
JSON
.
stringify
(
result
));
let
recvP2pPersistentGroupChangeFunc
=
()
=>
{
console
.
info
(
"
wifi_test / p2p persistent group change receive event
"
);
let
config
=
{
"
deviceAddress
"
:
"
02:11:65:f2:0d:6e
"
,
"
netId
"
:
-
2
,
...
...
@@ -505,12 +474,8 @@ describe('ACTS_WifiTest', function () {
console
.
info
(
"
wifi_test / get getCurrentGroup [callback] ->
"
+
JSON
.
stringify
(
data
));
});
};
await
wifi
.
on
(
'
p2pPersistentGroupChange
'
,
result
=>
{
console
.
info
(
"
p2pPersistentGroupChange callback, result:
"
+
JSON
.
stringify
(
result
));
expect
(
true
).
assertEqual
(
result
!=
null
);
done
();
});
setTimeout
(
function
()
{
wifi
.
on
(
"
p2pPersistentGroupChange
"
,
recvP2pPersistentGroupChangeFunc
);
setTimeout
(
async
function
()
{
wifi
.
off
(
'
p2pPersistentGroupChange
'
,
result
=>
{
console
.
info
(
"
offP2pPersistentGroupChange callback, result:
"
+
JSON
.
stringify
(
result
));
expect
(
true
).
assertEqual
(
result
!=
null
);
...
...
@@ -525,10 +490,9 @@ describe('ACTS_WifiTest', function () {
* @tc.desc Test p2pDiscoveryChange callback
*/
it
(
'
SUB_Communication_WiFi_P2P_p2pDiscoveryChange_0006
'
,
0
,
async
function
(
done
)
{
checkWifiPowerOn
();
await
wifi
.
on
(
'
p2pDiscoveryChange
'
,
result
=>
{
console
.
info
(
"
onp2pDiscoveryChange callback, result:
"
+
JSON
.
stringify
(
result
));
expect
(
true
).
assertEqual
(
result
!=
null
);
expect
(
true
).
assertEqual
(
(
result
!=
null
)
);
done
();
});
setTimeout
(
function
()
{
...
...
@@ -542,6 +506,3 @@ describe('ACTS_WifiTest', function () {
console
.
log
(
"
*************[wifi_test] start wifi js unit test end*************
"
);
})
communication/wifi_standard/src/main/js/default/test/WifiSta.test.js
浏览文件 @
e50d52fb
...
...
@@ -13,12 +13,23 @@
* limitations under the License.
*/
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
wifi
from
'
@ohos.wifi
'
function
sleep
(
delay
)
{
return
new
Promise
(
resovle
=>
setTimeout
(
resovle
,
delay
))
var
start
=
(
new
Date
()).
getTime
();
while
((
new
Date
()).
getTime
()
-
start
>
delay
)
{
break
;
}
}
function
checkWifiPowerOn
(){
console
.
info
(
"
Wifi_test/wifi status:
"
+
wifi
.
isWifiActive
());
}
function
resolve
(
ip
)
{
return
(
ip
>>
24
&
0xFF
)
+
"
.
"
+
(
ip
>>
16
&
0xFF
)
+
(
ip
>>
8
&
0xFF
)
+
(
ip
&
0xFF
);
}
...
...
@@ -30,17 +41,6 @@ let WifiSecurityType = {
WIFI_SEC_TYPE_SAE
:
4
,
}
function
checkWifiPowerOn
(){
console
.
info
(
"
wifi_test/wifi status:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
}
let
WifiDeviceConfig
=
{
"
ssid
"
:
"
TEST
"
,
"
bssid
"
:
""
,
"
preSharedKey
"
:
""
,
"
isHiddenSsid
"
:
false
,
"
securityType
"
:
WifiSecurityType
.
WIFI_SEC_TYPE_OPEN
,
}
let
ConnState
=
{
SCANNING
:
0
,
CONNECTING
:
1
,
...
...
@@ -52,21 +52,40 @@ let ConnState = {
UNKNOWN
:
7
,
}
let
untrustedDeviceConfig
=
{
"
ssid
"
:
"
untrusted_ssid
"
,
"
bssid
"
:
""
,
"
preSharedKey
"
:
"
12345678
"
,
"
isHiddenSsid
"
:
false
,
"
securityType
"
:
WifiSecurityType
.
WIFI_SEC_TYPE_PSK
}
let
WifiChannelWidth
=
{
WIDTH_20MHZ
:
0
,
WIDTH_40MHZ
:
1
,
WIDTH_80MHZ
:
2
,
WIDTH_160MHZ
:
3
,
WIDTH_280MHZ_PLUS
:
4
,
WIDTH_INVALID
}
describe
(
'
ACTS_WifiTest
'
,
function
()
{
beforeEach
(
function
()
{
checkWifiPowerOn
();
})
afterEach
(
function
()
{})
/**
* @tc.number open_0001
* @tc.name SUB_Communication_WiFi_Sta_Open_0001
* @tc.desc Test wifi.isWifiEnable API functionality.
* @since 6
* @tc.desc Test wifi.isWifiActive API functionality.
*/
it
(
'
SUB_Communication_WiFi_Sta_Open_0001
'
,
0
,
function
()
{
console
.
info
(
"
[wifi_test] check the state of wifi, if it's close, open it.
"
);
let
active
=
wifi
.
isWifiActive
();
it
(
'
SUB_Communication_WiFi_Sta_WifiActive_0001
'
,
0
,
function
()
{
sleep
(
3000
);
console
.
log
(
"
[wifi_test] check the state of wifi:
"
+
wifi
.
isWifiActive
());
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
})
...
...
@@ -78,7 +97,7 @@ describe('ACTS_WifiTest', function() {
*/
it
(
'
SUB_Communication_WiFi_Sta_Scan_0001
'
,
0
,
async
function
(
done
)
{
let
scan
=
wifi
.
scan
();
await
sleep
(
3000
);
sleep
(
3000
);
console
.
log
(
"
[wifi_test] open wifi scan result:
"
+
scan
);
expect
(
scan
).
assertTrue
();
...
...
@@ -104,7 +123,9 @@ describe('ACTS_WifiTest', function() {
"
rssi:
"
+
result
[
j
].
rssi
+
"
band:
"
+
result
[
j
].
band
+
"
frequency:
"
+
result
[
j
].
frequency
+
"
timestamp
"
+
result
[
j
].
timestamp
+
"
capabilities
"
+
result
[
j
].
capabilities
+
"
channelWidth:
"
+
result
[
j
].
channelWidth
);
+
"
channelWidth:
"
+
result
[
j
].
channelWidth
+
"
centerFrequency0
"
+
result
[
j
].
centerFrequency0
+
"
centerFrequency1
"
+
result
[
j
].
centerFrequency1
+
"
infoElems
"
+
result
[
j
].
infoElems
);
}
}
done
()
...
...
@@ -114,37 +135,47 @@ describe('ACTS_WifiTest', function() {
/**
* @tc.number Scan_0004
* @tc.name SUB_Communication_WiFi_Sta_Scan_0004
* @since 7
* @tc.desc Test wifi.getSignalLevel API functionality.
*/
it
(
'
SUB_Communication_WiFi_Sta_Scan_0004
'
,
0
,
function
()
{
console
.
info
(
"
[wifi_test] check the 2.4G rssi assgined to level test.
"
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
65
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
65
,
1
)).
assertEqual
(
4
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
66
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
66
,
1
)).
assertEqual
(
3
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
75
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
75
,
1
)).
assertEqual
(
3
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
76
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
76
,
1
)).
assertEqual
(
2
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
82
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
82
,
1
)).
assertEqual
(
2
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
83
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
83
,
1
)).
assertEqual
(
1
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
88
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
88
,
1
)).
assertEqual
(
1
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
89
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
89
,
1
)).
assertEqual
(
0
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
127
,
1
));
expect
(
wifi
.
getSignalLevel
(
-
127
,
1
)).
assertEqual
(
0
);
console
.
info
(
"
[wifi_test] check the 5G rssi assgined to level test.
"
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
65
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
65
,
2
)).
assertEqual
(
4
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
66
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
66
,
2
)).
assertEqual
(
3
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
72
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
72
,
2
)).
assertEqual
(
3
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
73
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
73
,
2
)).
assertEqual
(
2
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
79
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
79
,
2
)).
assertEqual
(
2
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
80
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
80
,
2
)).
assertEqual
(
1
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
85
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
85
,
2
)).
assertEqual
(
1
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
86
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
86
,
2
)).
assertEqual
(
0
);
console
.
info
(
"
[wifi_test] getSignalLevel
"
+
wifi
.
getSignalLevel
(
-
127
,
2
));
expect
(
wifi
.
getSignalLevel
(
-
127
,
2
)).
assertEqual
(
0
);
})
...
...
@@ -154,22 +185,24 @@ describe('ACTS_WifiTest', function() {
* @tc.number SUB_Communication_WiFi_Sta_info_0002
* @tc.name testgetCountryCode
* @tc.desc Test getCountryCode api.
* @since 7
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
*/
it
(
'
SUB_Communication_WiFi_Sta_Info_0002
'
,
0
,
function
()
{
expect
(
wifi
.
isWifiActive
()).
assertTrue
();
console
.
info
(
"
[wifi_test] getCountryCode start ...
"
);
let
countryCode
=
wifi
.
getCountryCode
();
console
.
info
(
"
[wifi_test] getCountryCode ->
"
+
JSON
.
stringify
(
countryCode
));
expect
(
JSON
.
stringify
(
countryCode
)).
assertEqual
(
'
"CN"
'
);
console
.
info
(
"
[wifi_test] getCountryCode.length ->
"
+
JSON
.
stringify
(
countryCode
.
length
));
expect
(
true
).
assertEqual
(
countryCode
.
length
==
2
);
})
/**
* @tc.number SUB_Communication_WiFi_Sta_info_0004
* @tc.name testFeatureSupported
* @tc.desc Test FeatureSupported api.
* @since 7
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
...
...
@@ -190,35 +223,36 @@ describe('ACTS_WifiTest', function() {
WIFI_FEATURE_OWE
:
0x20000000
}
let
isSupport1
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_FEATURE_INFRA
);
expect
(
isSupport1
).
assertFalse
();
console
.
info
(
"
[wifi_test] isFeatureSupported ->
"
+
isSupport1
);
let
isSupport2
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_FEATURE_INFRA_5G
);
expect
(
isSupport2
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported2 ->
"
+
isSupport2
);
let
isSupport3
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_GAS_ANQP
);
expect
(
isSupport3
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported3 ->
"
+
isSupport3
);
let
isSupport4
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_WIFI_DIRECT
);
expect
(
isSupport4
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported4 ->
"
+
isSupport4
);
let
isSupport5
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_FEATURE_MOBILE_HOTSPOT
);
expect
(
isSupport5
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported5 ->
"
+
isSupport5
);
let
isSupport6
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_FEATURE_AWARE
);
expect
(
isSupport6
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported6 ->
"
+
isSupport6
);
let
isSupport7
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_FEATURE_AP_STA
);
expect
(
isSupport7
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported7 ->
"
+
isSupport7
);
let
isSupport8
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_FEATURE_WPA3_SAE
);
expect
(
isSupport8
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported8 ->
"
+
isSupport8
);
let
isSupport9
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_FEATURE_WPA3_SUITE_B
);
expect
(
isSupport9
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported9 ->
"
+
isSupport9
);
let
isSupport
=
wifi
.
isFeatureSupported
(
WifiUtils
.
WIFI_FEATURE_OWE
);
expect
(
isSupport
).
assertFalse
(
);
console
.
info
(
"
[wifi_test] isFeatureSupported ->
"
+
isSupport
);
})
/**
* @tc.number conn_Config_0002
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_0002
* @since 7
* @tc.desc Test getLinkedInfo information
*/
it
(
'
SUB_Communication_WiFi_Sta_Conn_Info_0002
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
[wifi_test]isConnected :
"
+
wifi
.
isConnected
()
);
expect
(
wifi
.
isConnected
()
).
assertFalse
();
let
isConnected
=
wifi
.
isConnected
(
);
expect
(
isConnected
).
assertFalse
();
await
wifi
.
getLinkedInfo
()
.
then
((
result
)
=>
{
console
.
info
(
"
[wifi_test] get wifi link [promise] ->
"
+
JSON
.
stringify
(
result
));
...
...
@@ -233,12 +267,11 @@ describe('ACTS_WifiTest', function() {
/**
* @tc.number conn_Config_0003
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_0003
* @since 7
* @tc.desc Test getLinkedInfo callback information
*/
it
(
'
SUB_Communication_WiFi_Sta_Conn_Info_0003
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
[wifi_test]isConnected :
"
+
wifi
.
isConnected
());
expect
(
wifi
.
isConnected
()).
assertFalse
();
await
wifi
.
getLinkedInfo
(
wifi
.
getLinkedInfo
(
(
err
,
result
)
=>
{
if
(
err
)
{
console
.
log
(
"
[wifi_test] wifi getLinkedInfo failed
"
+
err
);
...
...
@@ -248,25 +281,55 @@ describe('ACTS_WifiTest', function() {
console
.
info
(
"
[wifi_test] getLinkedInfo callback result:
"
+
JSON
.
stringify
(
result
));
console
.
info
(
"
ssid:
"
+
result
.
ssid
+
"
bssid:
"
+
result
.
bssid
+
"
band:
"
+
result
.
band
+
"
isHidden:
"
+
result
.
isHidden
+
"
isRestricted:
"
+
result
.
isRestricted
+
"
rssi
"
+
result
.
rssi
+
"
chload:
"
+
result
.
chload
+
"
rssi
"
+
result
.
rssi
+
"
netWorkId
"
+
result
.
netWorkId
+
"
linkSpeed:
"
+
result
.
linkSpeed
+
"
frequency:
"
+
result
.
frequency
+
+
result
.
frequency
+
"
snr:
"
+
result
.
snr
+
"
macAddress:
"
+
result
.
macAddress
+
"
ipAddress:
"
+
result
.
ipAddress
+
"
connState:
"
+
result
.
connState
);
"
suppState
"
+
result
.
suppState
+
"
connState:
"
+
result
.
connState
+
"
macType:
"
+
result
.
macType
);
let
state
=
wifi
.
getLinkedInfo
().
connState
;
if
(
state
==
connState
.
SCANNING
){
expect
(
true
).
assertEqual
(
state
==
0
);
}
if
(
state
==
connState
.
CONNECTING
){
expect
(
true
).
assertEqual
(
state
==
1
);
}
if
(
state
==
connState
.
AUTHENTICATING
){
expect
(
true
).
assertEqual
(
state
==
2
);
}
if
(
state
==
connState
.
OBTAINING_IPADDR
){
expect
(
true
).
assertEqual
(
state
==
3
);
}
if
(
state
==
connState
.
CONNECTED
){
expect
(
true
).
assertEqual
(
state
==
4
);
}
if
(
state
==
connState
.
DISCONNECTING
){
expect
(
true
).
assertEqual
(
state
==
5
);
}
if
(
state
==
connState
.
DISCONNECTED
){
expect
(
true
).
assertEqual
(
state
==
6
);
}
if
(
state
==
connState
.
UNKNOWN
){
expect
(
true
).
assertEqual
(
state
==
7
);
}
done
();
});
})
/**
* @tc.number Conn_Info_0001
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_0001
* @tc.name SUB_Communication_WiFi_Sta_Conn_Info_0003
* @since 7
* @tc.desc Test get IpInfo information
*/
it
(
'
SUB_Communication_WiFi_Sta_Conn_Info_000
1
'
,
0
,
function
()
{
it
(
'
SUB_Communication_WiFi_Sta_Conn_Info_000
3
'
,
0
,
function
()
{
let
isConnected
=
wifi
.
isConnected
();
expect
(
isConnected
).
assertFalse
();
let
ipInfo
=
wifi
.
getIpInfo
();
expect
(
JSON
.
stringify
(
ipInfo
)).
assertContain
(
"
gateway
"
);
let
ipAddress
=
resolveIP
(
ipInfo
.
ipAddress
);
console
.
info
(
"
ipAddress result:
"
+
ipAddress
);
console
.
info
(
"
gateway:
"
+
ipInfo
.
gateway
+
"
ipAddress:
"
+
ipInfo
.
ipAddress
+
"
leaseDuration:
"
+
ipInfo
.
leaseDuration
+
"
leaseDuration:
"
+
ipInfo
.
leaseDuration
+
...
...
@@ -277,6 +340,7 @@ describe('ACTS_WifiTest', function() {
/**
* @tc.number wifiStateChange_0001
* @tc.name SUB_Communication_WiFi_Sta_wifiStateChange_0001
* @since 7
* @tc.desc Test wifiStateChange callback
*/
it
(
'
SUB_Communication_WiFi_Sta_wifiStateChange_0001
'
,
0
,
async
function
(
done
)
{
...
...
@@ -298,6 +362,7 @@ describe('ACTS_WifiTest', function() {
/**
* @tc.number wifiConnectionChange_0002
* @tc.name SUB_Communication_WiFi_Sta_wifiConnectionChange_0002
* @since 7
* @tc.desc Test wifiStateChange callback
*/
it
(
'
SUB_Communication_WiFi_Sta_wifiConnectionChange_0002
'
,
0
,
async
function
(
done
)
{
...
...
@@ -320,6 +385,7 @@ describe('ACTS_WifiTest', function() {
/**
* @tc.number wifiScanStateChange_0003
* @tc.name SUB_Communication_WiFi_Sta_wifiScanStateChange_0003
* @since 7
* @tc.desc Test wifiScanStateChange callback
*/
it
(
'
SUB_Communication_WiFi_Sta_wifiScanStateChange_0003
'
,
0
,
async
function
(
done
)
{
...
...
@@ -337,7 +403,7 @@ describe('ACTS_WifiTest', function() {
await
promise
.
then
(
done
)
});
let
scan
=
wifi
.
scan
();
await
sleep
(
3000
);
sleep
(
3000
);
done
();
})
...
...
@@ -345,6 +411,7 @@ describe('ACTS_WifiTest', function() {
/**
* @tc.number wifiRssiChange_0004
* @tc.name SUB_Communication_WiFi_Sta_wifiRssiChange_0004
* @since 7
* @tc.desc Test wifiRssiChange callback
*/
it
(
'
SUB_Communication_WiFi_Sta_wifiRssiChange_0004
'
,
0
,
async
function
(
done
)
{
...
...
@@ -369,6 +436,7 @@ describe('ACTS_WifiTest', function() {
* @tc.number SUB_Communication_WiFi_Hotspot_ON_0001
* @tc.name testhotspotStateChangeOn
* @tc.desc Test hotspotStateChangeOn api.
* @since 7
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
...
...
@@ -391,11 +459,12 @@ describe('ACTS_WifiTest', function() {
* @tc.number SUB_Communication_WiFi_Hotspot_Off_0002
* @tc.name testhotspotStateChangeOff
* @tc.desc Test hotspotStateChange api.
* @since 7
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 3
*/
it
(
'
SUB_Communication_WiFi_
Sta
_Off_0002
'
,
0
,
async
function
(
done
)
{
it
(
'
SUB_Communication_WiFi_
Hotspot
_Off_0002
'
,
0
,
async
function
(
done
)
{
try
{
await
wifi
.
off
(
'
hotspotStateChange
'
,
(
data
)
=>
{
console
.
info
(
"
[wifi_test] hotspotStateChange Off ->
"
+
data
);
...
...
@@ -411,5 +480,3 @@ describe('ACTS_WifiTest', function() {
console
.
log
(
"
*************[wifi_test] start wifi js unit test end*************
"
);
})
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录