Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
cd17b77a
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看板
未验证
提交
cd17b77a
编写于
2月 15, 2023
作者:
O
openharmony_ci
提交者:
Gitee
2月 15, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7576 @ohos.uitest.d.ts调整,xts测试套适配.
Merge pull request !7576 from 周柯/master
上级
2c83bcf1
9b9f50f5
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
56 addition
and
56 deletion
+56
-56
ability/dmsfwk/continuationmanagertest/src/main/js/TestAbility/app.js
...wk/continuationmanagertest/src/main/js/TestAbility/app.js
+1
-1
arkXtest/uitest/src/main/ets/test/uitest.test.ets
arkXtest/uitest/src/main/ets/test/uitest.test.ets
+33
-33
arkui/ace_ets_component_ui/entry/src/main/ets/test/BlankJsunit.test.ets
...component_ui/entry/src/main/ets/test/BlankJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/ButtonJsunit.test.ets
...omponent_ui/entry/src/main/ets/test/ButtonJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/CheckBoxJsunit.test.ets
...ponent_ui/entry/src/main/ets/test/CheckBoxJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/checkBoxGroupUIJsunit.test.ets
...ui/entry/src/main/ets/test/checkBoxGroupUIJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/dataPickerJsunit.test.ets
...nent_ui/entry/src/main/ets/test/dataPickerJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/datelPanelJsunit.test.ets
...nent_ui/entry/src/main/ets/test/datelPanelJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/dividerJsunit.test.ets
...mponent_ui/entry/src/main/ets/test/dividerJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/gaugeJsunit.test.ets
...component_ui/entry/src/main/ets/test/gaugeJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/loadingProgressJsunit.test.ets
...ui/entry/src/main/ets/test/loadingProgressJsunit.test.ets
+1
-1
arkui/ace_ets_component_ui/entry/src/main/ets/test/marqueeJsunit.test.ets
...mponent_ui/entry/src/main/ets/test/marqueeJsunit.test.ets
+1
-1
multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js
...dard/AudioCapturer/src/main/js/test/AudioCapturer.test.js
+1
-1
multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js
...angeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js
+1
-1
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
...dard/audioManager/src/main/js/test/AudioFramework.test.js
+1
-1
multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
..._js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
+1
-1
multimedia/media/media_js_standard/MediaTestBase.js
multimedia/media/media_js_standard/MediaTestBase.js
+1
-1
multimedia/medialibrary/common.js
multimedia/medialibrary/common.js
+1
-1
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/MainAbility/MainAbility.ts
...ibrary_base/entry/src/main/ets/MainAbility/MainAbility.ts
+1
-1
multimedia/medialibrary/mediaLibrary_getExifNoLocation/entry/src/main/ets/test/getExifNoLocation.test.ets
...cation/entry/src/main/ets/test/getExifNoLocation.test.ets
+1
-1
multimedia/medialibrary/mediaLibrary_getExiflocation/entry/src/main/ets/test/getExifLocation.test.ets
...location/entry/src/main/ets/test/getExifLocation.test.ets
+1
-1
notification/ans_standard/actsNotificationRequestTest/src/main/js/test/ActsNotificationRequestTest.js
...questTest/src/main/js/test/ActsNotificationRequestTest.js
+1
-1
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/ObjectInterface_test.js
...anager_ims2_call/src/main/js/test/ObjectInterface_test.js
+1
-1
wukong/actswukongtest/entry/src/main/ets/test/Ability.test.ets
...g/actswukongtest/entry/src/main/ets/test/Ability.test.ets
+1
-1
未找到文件。
ability/dmsfwk/continuationmanagertest/src/main/js/TestAbility/app.js
浏览文件 @
cd17b77a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
AbilityDelegatorRegistry
from
'
@ohos.application.abilityDelegatorRegistry
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
{
Hypium
}
from
'
@ohos/hypium
'
import
{
UiDriver
,
BY
}
from
'
@ohos.
uit
est
'
import
{
UiDriver
,
BY
}
from
'
@ohos.
UiT
est
'
import
testsuite
from
'
../test/List.test
'
import
testsuite
from
'
../test/List.test
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
...
...
arkXtest/uitest/src/main/ets/test/uitest.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'@ohos/hypium'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'@ohos/hypium'
import
abilityDelegatorRegistry
from
'@ohos.application.abilityDelegatorRegistry'
;
import
abilityDelegatorRegistry
from
'@ohos.application.abilityDelegatorRegistry'
;
import
{
UiComponent
,
UiDriver
,
BY
,
Component
,
Driver
,
UiWindow
,
ON
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
WindowMode
,
PointerMatrix
}
from
'@ohos.
uit
est'
import
{
UiComponent
,
UiDriver
,
BY
,
Component
,
Driver
,
UiWindow
,
ON
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
WindowMode
,
PointerMatrix
}
from
'@ohos.
UiT
est'
import
ability_featureAbility
from
'@ohos.ability.featureAbility'
;
import
ability_featureAbility
from
'@ohos.ability.featureAbility'
;
const
delegator
=
abilityDelegatorRegistry
.
getAbilityDelegator
();
const
delegator
=
abilityDelegatorRegistry
.
getAbilityDelegator
();
...
@@ -494,7 +494,7 @@ export default function UiTest() {
...
@@ -494,7 +494,7 @@ export default function UiTest() {
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
Button
=
await
driver
.
findComponent
(
ON
.
text
(
'next page'
))
let
Button
=
await
driver
.
findComponent
(
ON
.
text
(
'next page'
))
let
center
=
await
Button
.
getBoundsCenter
()
let
center
=
await
Button
.
getBoundsCenter
()
await
driver
.
click
(
center
.
X
,
center
.
Y
)
await
driver
.
click
(
center
.
x
,
center
.
y
)
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
newButton
=
await
driver
.
findComponent
(
ON
.
text
(
'back to index'
))
let
newButton
=
await
driver
.
findComponent
(
ON
.
text
(
'back to index'
))
let
text
=
await
newButton
.
getText
()
let
text
=
await
newButton
.
getText
()
...
@@ -514,7 +514,7 @@ export default function UiTest() {
...
@@ -514,7 +514,7 @@ export default function UiTest() {
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
Button
=
await
driver
.
findComponent
(
ON
.
text
(
'Click twice'
))
let
Button
=
await
driver
.
findComponent
(
ON
.
text
(
'Click twice'
))
let
center
=
await
Button
.
getBoundsCenter
()
let
center
=
await
Button
.
getBoundsCenter
()
await
driver
.
doubleClick
(
center
.
X
,
center
.
Y
)
await
driver
.
doubleClick
(
center
.
x
,
center
.
y
)
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
button
=
await
driver
.
findComponent
(
ON
.
text
(
'doubleClick'
))
let
button
=
await
driver
.
findComponent
(
ON
.
text
(
'doubleClick'
))
let
text
=
await
button
.
getText
()
let
text
=
await
button
.
getText
()
...
@@ -534,7 +534,7 @@ export default function UiTest() {
...
@@ -534,7 +534,7 @@ export default function UiTest() {
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
Button
=
await
driver
.
findComponent
(
ON
.
text
(
'next page'
))
let
Button
=
await
driver
.
findComponent
(
ON
.
text
(
'next page'
))
let
center
=
await
Button
.
getBoundsCenter
()
let
center
=
await
Button
.
getBoundsCenter
()
await
driver
.
longClick
(
center
.
X
,
center
.
Y
)
await
driver
.
longClick
(
center
.
x
,
center
.
y
)
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
newButton
=
await
driver
.
findComponent
(
ON
.
text
(
'longClick'
))
let
newButton
=
await
driver
.
findComponent
(
ON
.
text
(
'longClick'
))
let
text
=
await
newButton
.
getText
()
let
text
=
await
newButton
.
getText
()
...
@@ -784,7 +784,7 @@ export default function UiTest() {
...
@@ -784,7 +784,7 @@ export default function UiTest() {
let
text
=
await
driver
.
findComponent
(
ON
.
type
(
'TextInput'
))
let
text
=
await
driver
.
findComponent
(
ON
.
type
(
'TextInput'
))
let
center
=
await
text
.
getBoundsCenter
()
let
center
=
await
text
.
getBoundsCenter
()
await
text
.
inputText
(
'123'
)
await
text
.
inputText
(
'123'
)
await
driver
.
click
(
center
.
X
,
center
.
Y
)
await
driver
.
click
(
center
.
x
,
center
.
y
)
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
triggerCombineKeys
(
2072
,
2017
)
await
driver
.
triggerCombineKeys
(
2072
,
2017
)
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
...
@@ -924,7 +924,7 @@ export default function UiTest() {
...
@@ -924,7 +924,7 @@ export default function UiTest() {
await
startAbility
(
'com.uitestScene.acts'
,
'com.uitestScene.acts.MainAbility'
)
await
startAbility
(
'com.uitestScene.acts'
,
'com.uitestScene.acts.MainAbility'
)
let
driver
=
Driver
.
create
()
let
driver
=
Driver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
fling
({
X
:
300
,
Y
:
600
},{
X
:
300
,
Y
:
300
},
20
,
600
)
await
driver
.
fling
({
x
:
300
,
y
:
600
},{
x
:
300
,
y
:
300
},
20
,
600
)
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'next page'
))
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'next page'
))
expect
(
text
==
null
)
.
assertTrue
()
expect
(
text
==
null
)
.
assertTrue
()
let
scrollBar
=
await
driver
.
findComponent
(
ON
.
type
(
'Scroll'
))
let
scrollBar
=
await
driver
.
findComponent
(
ON
.
type
(
'Scroll'
))
...
@@ -1026,28 +1026,28 @@ export default function UiTest() {
...
@@ -1026,28 +1026,28 @@ export default function UiTest() {
let
bounds1
=
await
image1
.
getBounds
()
let
bounds1
=
await
image1
.
getBounds
()
let
pointer
=
PointerMatrix
.
create
(
2
,
11
)
let
pointer
=
PointerMatrix
.
create
(
2
,
11
)
await
driver
.
delayMs
(
300
)
await
driver
.
delayMs
(
300
)
pointer
.
setPoint
(
0
,
0
,{
X
:
245
,
Y
:
480
})
pointer
.
setPoint
(
0
,
0
,{
x
:
245
,
y
:
480
})
pointer
.
setPoint
(
0
,
1
,{
X
:
250
,
Y
:
480
})
pointer
.
setPoint
(
0
,
1
,{
x
:
250
,
y
:
480
})
pointer
.
setPoint
(
0
,
2
,{
X
:
255
,
Y
:
480
})
pointer
.
setPoint
(
0
,
2
,{
x
:
255
,
y
:
480
})
pointer
.
setPoint
(
0
,
3
,{
X
:
260
,
Y
:
480
})
pointer
.
setPoint
(
0
,
3
,{
x
:
260
,
y
:
480
})
pointer
.
setPoint
(
0
,
4
,{
X
:
265
,
Y
:
480
})
pointer
.
setPoint
(
0
,
4
,{
x
:
265
,
y
:
480
})
pointer
.
setPoint
(
0
,
5
,{
X
:
270
,
Y
:
480
})
pointer
.
setPoint
(
0
,
5
,{
x
:
270
,
y
:
480
})
pointer
.
setPoint
(
0
,
6
,{
X
:
275
,
Y
:
480
})
pointer
.
setPoint
(
0
,
6
,{
x
:
275
,
y
:
480
})
pointer
.
setPoint
(
0
,
7
,{
X
:
280
,
Y
:
480
})
pointer
.
setPoint
(
0
,
7
,{
x
:
280
,
y
:
480
})
pointer
.
setPoint
(
0
,
8
,{
X
:
285
,
Y
:
480
})
pointer
.
setPoint
(
0
,
8
,{
x
:
285
,
y
:
480
})
pointer
.
setPoint
(
0
,
9
,{
X
:
290
,
Y
:
480
})
pointer
.
setPoint
(
0
,
9
,{
x
:
290
,
y
:
480
})
pointer
.
setPoint
(
0
,
10
,{
X
:
295
,
Y
:
480
})
pointer
.
setPoint
(
0
,
10
,{
x
:
295
,
y
:
480
})
pointer
.
setPoint
(
1
,
0
,{
X
:
505
,
Y
:
480
})
pointer
.
setPoint
(
1
,
0
,{
x
:
505
,
y
:
480
})
pointer
.
setPoint
(
1
,
1
,{
X
:
500
,
Y
:
480
})
pointer
.
setPoint
(
1
,
1
,{
x
:
500
,
y
:
480
})
pointer
.
setPoint
(
1
,
2
,{
X
:
495
,
Y
:
480
})
pointer
.
setPoint
(
1
,
2
,{
x
:
495
,
y
:
480
})
pointer
.
setPoint
(
1
,
3
,{
X
:
490
,
Y
:
480
})
pointer
.
setPoint
(
1
,
3
,{
x
:
490
,
y
:
480
})
pointer
.
setPoint
(
1
,
4
,{
X
:
485
,
Y
:
480
})
pointer
.
setPoint
(
1
,
4
,{
x
:
485
,
y
:
480
})
pointer
.
setPoint
(
1
,
5
,{
X
:
480
,
Y
:
480
})
pointer
.
setPoint
(
1
,
5
,{
x
:
480
,
y
:
480
})
pointer
.
setPoint
(
1
,
6
,{
X
:
475
,
Y
:
480
})
pointer
.
setPoint
(
1
,
6
,{
x
:
475
,
y
:
480
})
pointer
.
setPoint
(
1
,
7
,{
X
:
470
,
Y
:
480
})
pointer
.
setPoint
(
1
,
7
,{
x
:
470
,
y
:
480
})
pointer
.
setPoint
(
1
,
8
,{
X
:
465
,
Y
:
480
})
pointer
.
setPoint
(
1
,
8
,{
x
:
465
,
y
:
480
})
pointer
.
setPoint
(
1
,
9
,{
X
:
460
,
Y
:
480
})
pointer
.
setPoint
(
1
,
9
,{
x
:
460
,
y
:
480
})
pointer
.
setPoint
(
1
,
10
,{
X
:
455
,
Y
:
480
})
pointer
.
setPoint
(
1
,
10
,{
x
:
455
,
y
:
480
})
await
driver
.
injectMultiPointerAction
(
pointer
,
600
)
await
driver
.
injectMultiPointerAction
(
pointer
,
600
)
let
image2
=
await
driver
.
findComponent
(
ON
.
type
(
'Image'
))
let
image2
=
await
driver
.
findComponent
(
ON
.
type
(
'Image'
))
let
bounds2
=
await
image2
.
getBounds
()
let
bounds2
=
await
image2
.
getBounds
()
...
@@ -1343,8 +1343,8 @@ export default function UiTest() {
...
@@ -1343,8 +1343,8 @@ export default function UiTest() {
let
driver
=
Driver
.
create
()
let
driver
=
Driver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
s
=
await
driver
.
getDisplaySize
()
let
s
=
await
driver
.
getDisplaySize
()
expect
(
s
.
X
!=
0
)
.
assertTrue
()
expect
(
s
.
x
!=
0
)
.
assertTrue
()
expect
(
s
.
Y
!=
0
)
.
assertTrue
()
expect
(
s
.
y
!=
0
)
.
assertTrue
()
await
stopApplication
(
'com.uitestScene.acts'
)
await
stopApplication
(
'com.uitestScene.acts'
)
})
})
...
@@ -1358,8 +1358,8 @@ export default function UiTest() {
...
@@ -1358,8 +1358,8 @@ export default function UiTest() {
let
driver
=
Driver
.
create
()
let
driver
=
Driver
.
create
()
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
s
=
await
driver
.
getDisplayDensity
()
let
s
=
await
driver
.
getDisplayDensity
()
expect
(
s
.
X
!=
0
)
.
assertTrue
()
expect
(
s
.
x
!=
0
)
.
assertTrue
()
expect
(
s
.
Y
!=
0
)
.
assertTrue
()
expect
(
s
.
y
!=
0
)
.
assertTrue
()
await
stopApplication
(
'com.uitestScene.acts'
)
await
stopApplication
(
'com.uitestScene.acts'
)
})
})
...
@@ -1501,7 +1501,7 @@ export default function UiTest() {
...
@@ -1501,7 +1501,7 @@ export default function UiTest() {
let
text2
=
await
driver
.
findComponent
(
ON
.
text
(
'one'
))
let
text2
=
await
driver
.
findComponent
(
ON
.
text
(
'one'
))
let
point1
=
await
text1
.
getBoundsCenter
()
let
point1
=
await
text1
.
getBoundsCenter
()
let
point2
=
await
text2
.
getBoundsCenter
()
let
point2
=
await
text2
.
getBoundsCenter
()
await
driver
.
drag
(
point1
.
X
,
point1
.
Y
,
point2
.
X
,
point2
.
Y
)
await
driver
.
drag
(
point1
.
x
,
point1
.
y
,
point2
.
x
,
point2
.
y
)
await
driver
.
delayMs
(
waitUiReadyMs
)
await
driver
.
delayMs
(
waitUiReadyMs
)
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'four'
))
let
text
=
await
driver
.
findComponent
(
ON
.
text
(
'four'
))
expect
(
text
==
null
)
.
assertTrue
()
expect
(
text
==
null
)
.
assertTrue
()
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/BlankJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/ButtonJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/CheckBoxJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/checkBoxGroupUIJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/dataPickerJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/datelPanelJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/dividerJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/gaugeJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/loadingProgressJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
arkui/ace_ets_component_ui/entry/src/main/ets/test/marqueeJsunit.test.ets
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "@ohos/hypium"
import router from '@system.router';
import router from '@system.router';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
uit
est';
import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.
UiT
est';
import CommonFunc from '../MainAbility/utils/Common';
import CommonFunc from '../MainAbility/utils/Common';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
import {MessageManager,Callback} from '../MainAbility/utils/MessageManager';
const waitUiReadyMs = 1000;
const waitUiReadyMs = 1000;
...
...
multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js
浏览文件 @
cd17b77a
...
@@ -17,7 +17,7 @@ import audio from '@ohos.multimedia.audio';
...
@@ -17,7 +17,7 @@ import audio from '@ohos.multimedia.audio';
import
fileio
from
'
@ohos.fileio
'
;
import
fileio
from
'
@ohos.fileio
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
UiDriver
,
BY
}
from
'
@ohos.
uit
est
'
import
{
UiDriver
,
BY
}
from
'
@ohos.
UiT
est
'
export
default
function
audioCapturer
()
{
export
default
function
audioCapturer
()
{
describe
(
'
audioCapturer
'
,
function
()
{
describe
(
'
audioCapturer
'
,
function
()
{
...
...
multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js
浏览文件 @
cd17b77a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
import
audio
from
'
@ohos.multimedia.audio
'
;
import
audio
from
'
@ohos.multimedia.audio
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
UiDriver
,
BY
}
from
'
@ohos.
uit
est
'
import
{
UiDriver
,
BY
}
from
'
@ohos.
UiT
est
'
export
default
function
audioCapturerChange
()
{
export
default
function
audioCapturerChange
()
{
describe
(
'
audioCapturerChange
'
,
function
()
{
describe
(
'
audioCapturerChange
'
,
function
()
{
...
...
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
浏览文件 @
cd17b77a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
import
audio
from
'
@ohos.multimedia.audio
'
;
import
audio
from
'
@ohos.multimedia.audio
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
UiDriver
,
BY
}
from
'
@ohos.
uit
est
'
import
{
UiDriver
,
BY
}
from
'
@ohos.
UiT
est
'
export
default
function
audioFramework
()
{
export
default
function
audioFramework
()
{
...
...
multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
浏览文件 @
cd17b77a
...
@@ -18,7 +18,7 @@ import fileio from '@ohos.fileio';
...
@@ -18,7 +18,7 @@ import fileio from '@ohos.fileio';
import
featureAbility
from
'
@ohos.ability.featureAbility
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
import
resourceManager
from
'
@ohos.resourceManager
'
;
import
resourceManager
from
'
@ohos.resourceManager
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
import
{
UiDriver
,
BY
}
from
'
@ohos.
uit
est
'
import
{
UiDriver
,
BY
}
from
'
@ohos.
UiT
est
'
export
default
function
audioVoip
()
{
export
default
function
audioVoip
()
{
describe
(
'
audioVoip
'
,
function
()
{
describe
(
'
audioVoip
'
,
function
()
{
...
...
multimedia/media/media_js_standard/MediaTestBase.js
浏览文件 @
cd17b77a
...
@@ -19,7 +19,7 @@ import router from '@system.router'
...
@@ -19,7 +19,7 @@ import router from '@system.router'
import
mediaLibrary
from
'
@ohos.multimedia.mediaLibrary
'
import
mediaLibrary
from
'
@ohos.multimedia.mediaLibrary
'
import
fileio
from
'
@ohos.fileio
'
import
fileio
from
'
@ohos.fileio
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
import
featureAbility
from
'
@ohos.ability.featureAbility
'
import
{
UiDriver
,
BY
,
PointerMatrix
}
from
'
@ohos.
uit
est
'
import
{
UiDriver
,
BY
,
PointerMatrix
}
from
'
@ohos.
UiT
est
'
const
CODECMIMEVALUE
=
[
'
video/avc
'
,
'
audio/mp4a-latm
'
,
'
audio/mpeg
'
]
const
CODECMIMEVALUE
=
[
'
video/avc
'
,
'
audio/mp4a-latm
'
,
'
audio/mpeg
'
]
const
context
=
featureAbility
.
getContext
();
const
context
=
featureAbility
.
getContext
();
...
...
multimedia/medialibrary/common.js
浏览文件 @
cd17b77a
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
import
mediaLibrary
from
"
@ohos.multimedia.mediaLibrary
"
;
import
mediaLibrary
from
"
@ohos.multimedia.mediaLibrary
"
;
import
abilityAccessCtrl
from
"
@ohos.abilityAccessCtrl
"
;
import
abilityAccessCtrl
from
"
@ohos.abilityAccessCtrl
"
;
import
bundle
from
"
@ohos.bundle
"
;
import
bundle
from
"
@ohos.bundle
"
;
import
uitest
from
"
@ohos.
uit
est
"
;
import
uitest
from
"
@ohos.
UiT
est
"
;
const
presetsCount
=
{
const
presetsCount
=
{
ActsMediaLibraryAlbumTest
:
{
albumsCount
:
15
,
assetsCount
:
27
},
ActsMediaLibraryAlbumTest
:
{
albumsCount
:
15
,
assetsCount
:
27
},
ActsMediaLibraryBaseTest
:
{
albumsCount
:
11
,
assetsCount
:
14
},
ActsMediaLibraryBaseTest
:
{
albumsCount
:
11
,
assetsCount
:
14
},
...
...
multimedia/medialibrary/mediaLibrary_base/entry/src/main/ets/MainAbility/MainAbility.ts
浏览文件 @
cd17b77a
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
ResizeDirection
,
ResizeDirection
,
WindowMode
,
WindowMode
,
PointerMatrix
,
PointerMatrix
,
}
from
"
@ohos.
uit
est
"
;
}
from
"
@ohos.
UiT
est
"
;
export
default
class
MainAbility
extends
Ability
{
export
default
class
MainAbility
extends
Ability
{
onCreate
(
want
,
launchParam
)
{
onCreate
(
want
,
launchParam
)
{
// Ability is creating, initialize resources for this ability
// Ability is creating, initialize resources for this ability
...
...
multimedia/medialibrary/mediaLibrary_getExifNoLocation/entry/src/main/ets/test/getExifNoLocation.test.ets
浏览文件 @
cd17b77a
...
@@ -17,7 +17,7 @@ import mediaLibrary from "@ohos.multimedia.mediaLibrary";
...
@@ -17,7 +17,7 @@ import mediaLibrary from "@ohos.multimedia.mediaLibrary";
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "deccjsunit/index";
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "deccjsunit/index";
import abilityAccessCtrl from "@ohos.abilityAccessCtrl";
import abilityAccessCtrl from "@ohos.abilityAccessCtrl";
import bundle from "@ohos.bundle";
import bundle from "@ohos.bundle";
import uitest from "@ohos.
uit
est";
import uitest from "@ohos.
UiT
est";
import { sleep } from "../../../../../../common";
import { sleep } from "../../../../../../common";
...
...
multimedia/medialibrary/mediaLibrary_getExiflocation/entry/src/main/ets/test/getExifLocation.test.ets
浏览文件 @
cd17b77a
...
@@ -17,7 +17,7 @@ import mediaLibrary from "@ohos.multimedia.mediaLibrary";
...
@@ -17,7 +17,7 @@ import mediaLibrary from "@ohos.multimedia.mediaLibrary";
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "deccjsunit/index";
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from "deccjsunit/index";
import abilityAccessCtrl from "@ohos.abilityAccessCtrl";
import abilityAccessCtrl from "@ohos.abilityAccessCtrl";
import bundle from "@ohos.bundle";
import bundle from "@ohos.bundle";
import uitest from "@ohos.
uit
est";
import uitest from "@ohos.
UiT
est";
import { sleep } from "../../../../../../common";
import { sleep } from "../../../../../../common";
...
...
notification/ans_standard/actsNotificationRequestTest/src/main/js/test/ActsNotificationRequestTest.js
浏览文件 @
cd17b77a
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
*/
*/
import
notification
from
'
@ohos.notification
'
import
notification
from
'
@ohos.notification
'
import
{
UiComponent
,
UiDriver
,
Component
,
Driver
,
UiWindow
,
ON
,
BY
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
WindowMode
,
PointerMatrix
}
from
'
@ohos.
uit
est
'
import
{
UiComponent
,
UiDriver
,
Component
,
Driver
,
UiWindow
,
ON
,
BY
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
WindowMode
,
PointerMatrix
}
from
'
@ohos.
UiT
est
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
export
default
function
ActsNotificationRequestTest
()
{
export
default
function
ActsNotificationRequestTest
()
{
...
...
telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/ObjectInterface_test.js
浏览文件 @
cd17b77a
...
@@ -17,7 +17,7 @@ import contact from '@ohos.contact';
...
@@ -17,7 +17,7 @@ import contact from '@ohos.contact';
import
sms
from
'
@ohos.telephony.sms
'
;
import
sms
from
'
@ohos.telephony.sms
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
{
afterAll
,
beforeAll
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
afterAll
,
beforeAll
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
BY
,
UiDriver
}
from
'
@ohos.
uit
est
'
;
import
{
BY
,
UiDriver
}
from
'
@ohos.
UiT
est
'
;
export
default
function
ObjectInterfaceTest
()
{
export
default
function
ObjectInterfaceTest
()
{
...
...
wukong/actswukongtest/entry/src/main/ets/test/Ability.test.ets
浏览文件 @
cd17b77a
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
import { UiDriver } from '@ohos.
uit
est'
import { UiDriver } from '@ohos.
UiT
est'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
import prompt from '@ohos.prompt'
import prompt from '@ohos.prompt'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录