Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
77cb2ee1
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看板
未验证
提交
77cb2ee1
编写于
8月 04, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 04, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4761 【communication】修改WIFI JS L2测试用例1+新框架适配
Merge pull request !4761 from 权力/myfeature
上级
0e108875
a50b646a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
18 deletion
+21
-18
communication/wifi_p2p/src/main/js/test/List.test.js
communication/wifi_p2p/src/main/js/test/List.test.js
+2
-2
communication/wifi_p2p/src/main/js/test/WifiP2P.test.js
communication/wifi_p2p/src/main/js/test/WifiP2P.test.js
+4
-3
communication/wifi_standard/src/main/js/test/List.test.js
communication/wifi_standard/src/main/js/test/List.test.js
+2
-2
communication/wifi_standard/src/main/js/test/WifiSta.test.js
communication/wifi_standard/src/main/js/test/WifiSta.test.js
+13
-11
未找到文件。
communication/wifi_p2p/src/main/js/test/List.test.js
浏览文件 @
77cb2ee1
...
...
@@ -14,7 +14,7 @@
*/
//require('./WifiSta.test.js')
//require('./WifiSoftAP.test.js')
import
A
CTS_
WifiTest
from
'
./WifiP2P.test.js
'
import
A
cts
WifiTest
from
'
./WifiP2P.test.js
'
export
default
function
testsuite
()
{
A
CTS_
WifiTest
()
A
cts
WifiTest
()
}
communication/wifi_p2p/src/main/js/test/WifiP2P.test.js
浏览文件 @
77cb2ee1
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
wifi
from
'
@ohos.wifi
'
...
...
@@ -33,8 +33,8 @@ let GroupOwnerBand = {
GO_BAND_2GHZ
:
1
,
GO_BAND_5GHZ
:
2
,
}
describe
(
'
A
CTS_
WifiTest
'
,
function
()
{
export
default
function
ActsWifiTest
()
{
describe
(
'
A
cts
WifiTest
'
,
function
()
{
beforeEach
(
function
()
{
console
.
info
(
"
beforeEach start
"
);
checkWifiPowerOn
();
...
...
@@ -506,3 +506,4 @@ describe('ACTS_WifiTest', function () {
console
.
log
(
"
*************[wifi_test] start wifi js unit test end*************
"
);
})
}
communication/wifi_standard/src/main/js/test/List.test.js
浏览文件 @
77cb2ee1
...
...
@@ -14,7 +14,7 @@
*/
require
(
'
./WifiSta.test.js
'
)
//require('./WifiSoftAP.test.js')
import
A
CTS_
WifiTest
from
'
./WifiSta.test.js
'
import
A
cts
WifiTest
from
'
./WifiSta.test.js
'
export
default
function
testsuite
()
{
A
CTS_
WifiTest
()
A
cts
WifiTest
()
}
communication/wifi_standard/src/main/js/test/WifiSta.test.js
浏览文件 @
77cb2ee1
...
...
@@ -13,7 +13,7 @@
* limitations under the License.
*/
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
wifi
from
'
@ohos.wifi
'
...
...
@@ -66,10 +66,11 @@ let WifiChannelWidth = {
WIDTH_80MHZ
:
2
,
WIDTH_160MHZ
:
3
,
WIDTH_280MHZ_PLUS
:
4
,
WIDTH_INVALID
WIDTH_INVALID
:
null
,
}
describe
(
'
ACTS_WifiTest
'
,
function
()
{
export
default
function
ActsWifiTest
()
{
describe
(
'
ActsWifiTest
'
,
function
()
{
beforeEach
(
function
()
{
checkWifiPowerOn
();
...
...
@@ -289,28 +290,28 @@ describe('ACTS_WifiTest', function() {
"
macType:
"
+
result
.
macType
);
let
state
=
wifi
.
getLinkedInfo
().
connState
;
if
(
state
==
c
onnState
.
SCANNING
){
if
(
state
==
C
onnState
.
SCANNING
){
expect
(
true
).
assertEqual
(
state
==
0
);
}
if
(
state
==
c
onnState
.
CONNECTING
){
if
(
state
==
C
onnState
.
CONNECTING
){
expect
(
true
).
assertEqual
(
state
==
1
);
}
if
(
state
==
c
onnState
.
AUTHENTICATING
){
if
(
state
==
C
onnState
.
AUTHENTICATING
){
expect
(
true
).
assertEqual
(
state
==
2
);
}
if
(
state
==
c
onnState
.
OBTAINING_IPADDR
){
if
(
state
==
C
onnState
.
OBTAINING_IPADDR
){
expect
(
true
).
assertEqual
(
state
==
3
);
}
if
(
state
==
c
onnState
.
CONNECTED
){
if
(
state
==
C
onnState
.
CONNECTED
){
expect
(
true
).
assertEqual
(
state
==
4
);
}
if
(
state
==
c
onnState
.
DISCONNECTING
){
if
(
state
==
C
onnState
.
DISCONNECTING
){
expect
(
true
).
assertEqual
(
state
==
5
);
}
if
(
state
==
c
onnState
.
DISCONNECTED
){
if
(
state
==
C
onnState
.
DISCONNECTED
){
expect
(
true
).
assertEqual
(
state
==
6
);
}
if
(
state
==
c
onnState
.
UNKNOWN
){
if
(
state
==
C
onnState
.
UNKNOWN
){
expect
(
true
).
assertEqual
(
state
==
7
);
}
done
();
...
...
@@ -479,4 +480,5 @@ 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录