Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
c8ca703d
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看板
未验证
提交
c8ca703d
编写于
3月 28, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 28, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2913 【communication】修改hotspot测试用例执行失败问题
Merge pull request !2913 from 权力/cherry-pick-1648465425
上级
bf32347a
24e0c2d9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
50 addition
and
5 deletion
+50
-5
communication/wifi_hotspot/src/main/js/default/pages/index/index.js
...ion/wifi_hotspot/src/main/js/default/pages/index/index.js
+1
-1
communication/wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
.../wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
+1
-0
communication/wifi_p2p/src/main/js/default/pages/index/index.js
...ication/wifi_p2p/src/main/js/default/pages/index/index.js
+1
-1
communication/wifi_standard/src/main/js/default/pages/index/index.js
...on/wifi_standard/src/main/js/default/pages/index/index.js
+1
-1
location/geolocation_standard/src/main/js/default/test/Geolocation.test.js
...ion_standard/src/main/js/default/test/Geolocation.test.js
+46
-2
未找到文件。
communication/wifi_hotspot/src/main/js/default/pages/index/index.js
浏览文件 @
c8ca703d
...
@@ -20,7 +20,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index'
...
@@ -20,7 +20,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index'
export
default
{
export
default
{
data
:
{
data
:
{
title
:
''
,
title
:
''
,
myTimeout
:
1
5000
myTimeout
:
2
5000
},
},
onInit
()
{
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
this
.
title
=
this
.
$t
(
'
strings.world
'
);
...
...
communication/wifi_hotspot/src/main/js/default/test/WifiSoftAP.test.js
浏览文件 @
c8ca703d
...
@@ -530,6 +530,7 @@ describe('ACTS_WifiTest', function() {
...
@@ -530,6 +530,7 @@ describe('ACTS_WifiTest', function() {
let
isSuccess1
=
wifi
.
setHotspotConfig
(
HotspotConfigWO
);
let
isSuccess1
=
wifi
.
setHotspotConfig
(
HotspotConfigWO
);
console
.
log
(
"
[wifi_test] set a psk preSharedKey hotspot config result1:
"
+
isSuccess1
);
console
.
log
(
"
[wifi_test] set a psk preSharedKey hotspot config result1:
"
+
isSuccess1
);
expect
(
isSuccess1
).
assertTrue
();
expect
(
isSuccess1
).
assertTrue
();
await
sleep
(
5000
);
let
config
=
wifi
.
getHotspotConfig
();
let
config
=
wifi
.
getHotspotConfig
();
console
.
info
(
"
[wifi_test] getHotspotConfig result ->
"
+
JSON
.
stringify
(
config
));
console
.
info
(
"
[wifi_test] getHotspotConfig result ->
"
+
JSON
.
stringify
(
config
));
expect
(
config
.
ssid
).
assertEqual
(
'
WIFITEST
'
);
expect
(
config
.
ssid
).
assertEqual
(
'
WIFITEST
'
);
...
...
communication/wifi_p2p/src/main/js/default/pages/index/index.js
浏览文件 @
c8ca703d
...
@@ -20,7 +20,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index'
...
@@ -20,7 +20,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index'
export
default
{
export
default
{
data
:
{
data
:
{
title
:
''
,
title
:
''
,
myTimeout
:
1
5000
myTimeout
:
2
5000
},
},
onInit
()
{
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
this
.
title
=
this
.
$t
(
'
strings.world
'
);
...
...
communication/wifi_standard/src/main/js/default/pages/index/index.js
浏览文件 @
c8ca703d
...
@@ -18,7 +18,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index'
...
@@ -18,7 +18,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index'
export
default
{
export
default
{
data
:
{
data
:
{
title
:
''
,
title
:
''
,
myTimeout
:
1
5000
myTimeout
:
2
5000
},
},
onInit
()
{
onInit
()
{
this
.
title
=
this
.
$t
(
'
strings.world
'
);
this
.
title
=
this
.
$t
(
'
strings.world
'
);
...
...
location/geolocation_standard/src/main/js/default/test/Geolocation.test.js
浏览文件 @
c8ca703d
...
@@ -14,12 +14,12 @@
...
@@ -14,12 +14,12 @@
*/
*/
import
geolocation
from
'
@ohos.geolocation
'
;
import
geolocation
from
'
@ohos.geolocation
'
;
import
wantAgent
from
'
@ohos.wantAgent
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
deccjsunit/index
'
let
LocationRequestScenario
=
{
UNSET
:
0x300
,
NAVIGATION
:
0x301
,
let
LocationRequestScenario
=
{
UNSET
:
0x300
,
NAVIGATION
:
0x301
,
TRAJECTORY_TRACKING
:
0x302
,
CAR_HAILING
:
0x303
,
TRAJECTORY_TRACKING
:
0x302
,
CAR_HAILING
:
0x303
,
DAILY_LIFE_SER
I
VICE
:
0x304
,
NO_POWER
:
0x305
}
DAILY_LIFE_SERVICE
:
0x304
,
NO_POWER
:
0x305
}
let
LocationRequestPriority
=
{
UNSET
:
0x200
,
ACCURACY
:
0x201
,
LOW_POWER
:
0x202
,
FIRST_FIX
:
0x203
}
let
LocationRequestPriority
=
{
UNSET
:
0x200
,
ACCURACY
:
0x201
,
LOW_POWER
:
0x202
,
FIRST_FIX
:
0x203
}
let
LocationPrivacyType
=
{
let
LocationPrivacyType
=
{
...
@@ -896,6 +896,50 @@ describe('geolocationTest', function () {
...
@@ -896,6 +896,50 @@ describe('geolocationTest', function () {
})
})
/**
* @tc.number SUB_LOCATION_geocode_DEVICE_JS_LOCATION_CHANGE_ON_0001
* @tc.name testlocationChangeOn promise
* @tc.desc Test fenceStatusChange api .
* @tc.size MEDIUM
* @tc.type Function
* @tc.level Level 2
*/
it
(
'
geolocation_fenceStatusChange_On_test_001
'
,
0
,
async
function
(
done
)
{
geolocation
.
enableLocation
((
err
,
data
)
=>
{
if
(
err
)
{
console
.
info
(
'
[lbs_js] enableLocation callback err is :
'
+
err
);
}
else
{
console
.
info
(
"
[lbs_js] enableLocation callback data:
"
+
data
);
expect
(
data
).
assertTrue
();
}
done
()
});
let
geofence
=
{
"
latitude
"
:
31.12
,
"
longitude
"
:
121.11
,
"
radius
"
:
1
,
"
expiration
"
:
""
};
let
geofenceRequest
=
{
"
priority
"
:
0x203
,
"
scenario
"
:
0x300
,
"
geofence
"
:
geofence
};
let
want
=
(
wantAgent
)
=>
{
console
.
log
(
'
wantAgent:
'
+
JSON
.
stringify
(
wantAgent
));
};
await
geolocation
.
on
(
'
fenceStatusChange
'
,
geofenceRequest
,
want
=>
{
if
(
err
){
return
console
.
info
(
"
fenceStatusChange callback err:
"
+
err
);
}
console
.
info
(
"
offfenceStatusChange callback:
"
+
JSON
.
stringify
(
want
));
expect
(
true
).
assertEqual
(
want
!=
null
);
done
();
});
await
geolocation
.
off
(
'
fenceStatusChange
'
,
geofenceRequest
,
want
=>
{
if
(
err
){
return
console
.
info
(
"
fenceStatusChange callback err:
"
+
err
);
}
console
.
info
(
"
offfenceStatusChange callback:
"
+
JSON
.
stringify
(
want
));
expect
(
true
).
assertEqual
(
want
!=
null
);
done
();
});
})
/**
/**
* @tc.number SUB_LOCATION_geocode_DEVICE_JS_LOCATION_CHANGE_ON_0002
* @tc.number SUB_LOCATION_geocode_DEVICE_JS_LOCATION_CHANGE_ON_0002
* @tc.name testlocationChangeOn promise
* @tc.name testlocationChangeOn promise
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录