Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b52cd769
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看板
提交
b52cd769
编写于
10月 21, 2021
作者:
O
openharmony_ci
提交者:
Gitee
10月 21, 2021
浏览文件
操作
浏览文件
下载
差异文件
!946 【communication】修改WIFI JS L2测试用例3
Merge pull request !946 from 权力/myfeature
上级
2ff715d0
a244cbed
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
7 addition
and
8 deletion
+7
-8
communication/wifi_standard/src/main/js/default/pages/index/index.js
...on/wifi_standard/src/main/js/default/pages/index/index.js
+3
-8
communication/wifi_standard/src/main/js/default/test/WifiSta.test.js
...on/wifi_standard/src/main/js/default/test/WifiSta.test.js
+4
-0
未找到文件。
communication/wifi_standard/src/main/js/default/pages/index/index.js
浏览文件 @
b52cd769
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
import
app
from
'
@system.app
'
import
app
from
'
@system.app
'
//import {Core, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsunit/index'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
import
{
Core
,
ExpectExtend
}
from
'
deccjsunit/index
'
export
default
{
export
default
{
...
@@ -28,22 +27,18 @@ export default {
...
@@ -28,22 +27,18 @@ export default {
onShow
()
{
onShow
()
{
console
.
info
(
'
onShow finish
'
)
console
.
info
(
'
onShow finish
'
)
const
core
=
Core
.
getInstance
()
const
core
=
Core
.
getInstance
()
// const instrumentLog = new InstrumentLog({
// 'id': 'report'
// })
const
expectExtend
=
new
ExpectExtend
({
const
expectExtend
=
new
ExpectExtend
({
'
id
'
:
'
extend
'
'
id
'
:
'
extend
'
})
})
core
.
addService
(
'
expect
'
,
expectExtend
)
core
.
addService
(
'
expect
'
,
expectExtend
)
// core.addService('report', instrumentLog)
// core.addService('report', instrumentLog)
core
.
init
()
core
.
init
()
// core.subscribeEvent('spec', instrumentLog)
// core.subscribeEvent('suite', instrumentLog)
// core.subscribeEvent('task', instrumentLog)
const
configService
=
core
.
getDefaultService
(
'
config
'
)
const
configService
=
core
.
getDefaultService
(
'
config
'
)
configService
.
setConfig
(
this
)
configService
.
setConfig
(
this
)
this
.
timeout
=
5000
require
(
'
../../test/List.test
'
)
require
(
'
../../test/List.test
'
)
core
.
execute
()
core
.
execute
()
},
},
...
...
communication/wifi_standard/src/main/js/default/test/WifiSta.test.js
浏览文件 @
b52cd769
...
@@ -84,6 +84,8 @@ it('wifi_native_js_unit_test_003', 0, function () {
...
@@ -84,6 +84,8 @@ it('wifi_native_js_unit_test_003', 0, function () {
*/
*/
it
(
'
wifi_native_js_unit_test_005
'
,
0
,
async
function
(
done
)
{
it
(
'
wifi_native_js_unit_test_005
'
,
0
,
async
function
(
done
)
{
console
.
info
(
"
[wifi_test] Wifi get scan infos callback test[1].
"
);
console
.
info
(
"
[wifi_test] Wifi get scan infos callback test[1].
"
);
var
result
=
wifi
.
scan
();
sleep
(
20000
);
wifi
.
getScanInfos
(
wifi
.
getScanInfos
(
(
result
)
=>
{
(
result
)
=>
{
var
clen
=
Object
.
keys
(
result
).
length
;
var
clen
=
Object
.
keys
(
result
).
length
;
...
@@ -130,6 +132,8 @@ it('wifi_native_js_unit_test_006', 0, async function (done) {
...
@@ -130,6 +132,8 @@ it('wifi_native_js_unit_test_006', 0, async function (done) {
console
.
info
(
"
band:
"
+
result
[
j
].
band
);
console
.
info
(
"
band:
"
+
result
[
j
].
band
);
console
.
info
(
"
frequency:
"
+
result
[
j
].
frequency
);
console
.
info
(
"
frequency:
"
+
result
[
j
].
frequency
);
console
.
info
(
"
timestamp:
"
+
result
[
j
].
timestamp
);
console
.
info
(
"
timestamp:
"
+
result
[
j
].
timestamp
);
console
.
info
(
"
capabilities:
"
+
result
[
j
].
capabilities
);
console
.
info
(
"
channelWidth:
"
+
result
[
j
].
channelWidth
);
}
}
});
});
done
();
done
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录