Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8639b32b
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8639b32b
编写于
12月 13, 2022
作者:
Q
qinliwen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<avsession签名文件更改>
Signed-off-by:
N
qinliwen
<
qinliwen3@huawei.com
>
上级
ca41e2a9
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
5 addition
and
46 deletion
+5
-46
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/AudioTestBase.js
multimedia/audio/audio_js_standard/AudioTestBase.js
+0
-40
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/audioManager/src/main/js/test/AudioManagerApi9.test.js
...rd/audioManager/src/main/js/test/AudioManagerApi9.test.js
+0
-1
multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
..._js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
+0
-1
multimedia/avsession/avsession_js_standard/avsessionManager/signature/openharmony_sx.p7b
...js_standard/avsessionManager/signature/openharmony_sx.p7b
+0
-0
multimedia/camera/camera_js_standard/Test.json
multimedia/camera/camera_js_standard/Test.json
+2
-1
未找到文件。
multimedia/audio/audio_js_standard/AudioCapturer/src/main/js/test/AudioCapturer.test.js
浏览文件 @
8639b32b
...
...
@@ -17,7 +17,7 @@ import audio from '@ohos.multimedia.audio';
import
fileio
from
'
@ohos.fileio
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
Ui
Component
,
UiDriver
,
Component
,
Driver
,
UiWindow
,
ON
,
BY
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
WindowMode
,
PointerMatrix
}
from
'
@ohos.uitest
'
import
{
Ui
Driver
,
BY
}
from
'
@ohos.uitest
'
export
default
function
audioCapturer
()
{
describe
(
'
audioCapturer
'
,
function
()
{
...
...
multimedia/audio/audio_js_standard/AudioCapturerChangeInfo/src/main/js/test/AudioCapturerChangeInfo.test.js
浏览文件 @
8639b32b
...
...
@@ -16,7 +16,7 @@
import
audio
from
'
@ohos.multimedia.audio
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
Ui
Component
,
UiDriver
,
Component
,
Driver
,
UiWindow
,
ON
,
BY
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
WindowMode
,
PointerMatrix
}
from
'
@ohos.uitest
'
import
{
Ui
Driver
,
BY
}
from
'
@ohos.uitest
'
export
default
function
audioCapturerChange
()
{
describe
(
'
audioCapturerChange
'
,
function
()
{
...
...
multimedia/audio/audio_js_standard/AudioTestBase.js
已删除
100644 → 0
浏览文件 @
ca41e2a9
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import
abilityAccessCtrl
from
'
@ohos.abilityAccessCtrl
'
;
import
bundle
from
'
@ohos.bundle
'
;
import
account
from
'
@ohos.account.osAccount
'
;
// apply permission for test hap
export
async
function
applyPermission
(
applictionName
,
permissionNames
)
{
let
userId
=
await
account
.
getAccountManager
().
getOsAccountLocalIdFromProcess
();
console
.
info
(
`userid is :
${
userId
}
`
)
let
appInfo
=
await
bundle
.
getApplicationInfo
(
applictionName
,
0
,
userId
);
let
atManager
=
abilityAccessCtrl
.
createAtManager
();
if
(
atManager
!=
null
)
{
let
tokenID
=
appInfo
.
accessTokenId
;
console
.
info
(
`[permission] case accessTokenID is
${
tokenID
}
`
);
for
(
let
i
=
0
;
i
<
permissionNames
.
length
;
i
++
)
{
await
atManager
.
grantUserGrantedPermission
(
tokenID
,
permissionNames
[
i
],
1
).
then
((
result
)
=>
{
console
.
info
(
`[permission] case grantUserGrantedPermission success :
${
result
}
`
);
}).
catch
((
err
)
=>
{
console
.
info
(
`[permission] case grantUserGrantedPermission failed :
${
err
}
`
);
});
}
}
else
{
console
.
info
(
`[permission] case apply permission failed, createAtManager failed`
);
}
}
\ No newline at end of file
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioFramework.test.js
浏览文件 @
8639b32b
...
...
@@ -16,7 +16,7 @@
import
audio
from
'
@ohos.multimedia.audio
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
;
import
{
afterAll
,
afterEach
,
beforeAll
,
beforeEach
,
describe
,
expect
,
it
}
from
'
@ohos/hypium
'
;
import
{
Ui
Component
,
UiDriver
,
Component
,
Driver
,
UiWindow
,
ON
,
BY
,
MatchPattern
,
DisplayRotation
,
ResizeDirection
,
WindowMode
,
PointerMatrix
}
from
'
@ohos.uitest
'
import
{
Ui
Driver
,
BY
}
from
'
@ohos.uitest
'
export
default
function
audioFramework
()
{
...
...
multimedia/audio/audio_js_standard/audioManager/src/main/js/test/AudioManagerApi9.test.js
浏览文件 @
8639b32b
...
...
@@ -14,7 +14,6 @@
*/
import
audio
from
'
@ohos.multimedia.audio
'
;
// import * as audioTestBase from '../../../../../AudioTestBase'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
export
default
function
audioManagerApi9
()
{
...
...
multimedia/audio/audio_js_standard/audioVoip/src/main/js/test/AudioVOIP.test.js
浏览文件 @
8639b32b
...
...
@@ -17,7 +17,6 @@ import audio from '@ohos.multimedia.audio';
import
fileio
from
'
@ohos.fileio
'
;
import
featureAbility
from
'
@ohos.ability.featureAbility
'
import
resourceManager
from
'
@ohos.resourceManager
'
;
import
*
as
audioTestBase
from
'
../../../../../AudioTestBase
'
import
{
describe
,
beforeAll
,
beforeEach
,
afterEach
,
afterAll
,
it
,
expect
}
from
'
@ohos/hypium
'
;
import
{
UiDriver
,
BY
}
from
'
@ohos.uitest
'
...
...
multimedia/avsession/avsession_js_standard/avsessionManager/signature/openharmony_sx.p7b
浏览文件 @
8639b32b
无法预览此类型文件
multimedia/camera/camera_js_standard/Test.json
浏览文件 @
8639b32b
...
...
@@ -5,7 +5,8 @@
"test-timeout"
:
"3000000"
,
"bundle-name"
:
"com.open.harmony.multimedia.cameratest"
,
"package-name"
:
"com.open.harmony.multimedia.cameratest"
,
"shell-timeout"
:
"60000"
"shell-timeout"
:
"60000"
,
"testcase-timeout"
:
100000
},
"kits"
:
[
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录