Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d184ec6d
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看板
提交
d184ec6d
编写于
7月 27, 2023
作者:
W
wangzx0705
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify acts testcase
Signed-off-by:
N
wangzx0705
<
wangzx0705@thundersoft.com
>
上级
980f9f43
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
53 addition
and
695 deletion
+53
-695
multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets
...gerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets
+52
-34
multimedia/audio/audio_js_standard/AudioRendererEnhance/Test.json
...ia/audio/audio_js_standard/AudioRendererEnhance/Test.json
+1
-0
multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/Const.ets
...standard/AudioRendererEnhance/src/main/ets/test/Const.ets
+0
-2
multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetAndSetRendererSamplingRate.test.ets
.../src/main/ets/test/GetAndSetRendererSamplingRate.test.ets
+0
-657
multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/List.test.ets
...dard/AudioRendererEnhance/src/main/ets/test/List.test.ets
+0
-2
未找到文件。
multimedia/audio/audio_js_standard/AudioManagerEnhance/src/main/ets/test/GetSystemVolumeInDb.test.ets
浏览文件 @
d184ec6d
...
...
@@ -290,7 +290,7 @@ export default function audioManagerTest() {
.
catch
((
error
)
=>
{
if
(
error
)
{
console
.
log
(
`${TagFrmwk}:getSystemVolumeInDb : error ${error.message} ${error.code}`
);
expect
(
Number
(
error
.
code
))
.
assertEqual
(
env
.
UNSUPORTED_OPTION_6800104
);
expect
(
Number
(
error
.
code
))
.
assertEqual
(
env
.
INVALID_INPUT_PARAMETER_6800101
);
done
();
}
else
{
expect
(
false
)
.
assertTrue
();
...
...
@@ -431,17 +431,23 @@ export default function audioManagerTest() {
* @tc.level : Level 0
*/
it
(
'SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_GETSYSTEMVOLUMEINDB_CALLBACK_1200'
,
0
,
async
function
(
done
)
{
await
audioVolumeGroupManager
.
getSystemVolumeInDb
(
3
,
audio
.
DeviceType
.
SPEAKER
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`${TagFrmwk}getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
Number
(
err
.
code
))
.
assertEqual
(
env
.
INVALID_INPUT_PARAMETER_6800101
);
done
();
}
else
{
console
.
log
(
`${TagFrmwk}: getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
false
)
.
assertTrue
();
done
();
}
});
try
{
await
audioVolumeGroupManager
.
getSystemVolumeInDb
(
3
,
audio
.
DeviceType
.
SPEAKER
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`${TagFrmwk}getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
Number
(
err
.
code
))
.
assertEqual
(
env
.
INVALID_INPUT_PARAMETER_6800101
);
done
();
}
else
{
console
.
log
(
`${TagFrmwk}: getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
false
)
.
assertTrue
();
done
();
}
});
}
catch
(
error
)
{
console
.
log
(
`${TagFrmwk}:getSystemVolumeInDb error, check error code: ${error.code}`
);
expect
(
Number
(
error
.
code
))
.
assertEqual
(
env
.
INVALID_INPUT_PARAMETER_6800101
);
done
();
}
})
/**
...
...
@@ -453,17 +459,23 @@ export default function audioManagerTest() {
* @tc.level : Level 0
*/
it
(
'SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_GETSYSTEMVOLUMEINDB_CALLBACK_1300'
,
0
,
async
function
(
done
)
{
await
audioVolumeGroupManager
.
getSystemVolumeInDb
(
audio
.
AudioVolumeType
.
MEDIA
,
audio
.
DeviceType
.
SPEAKER
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`${TagFrmwk} getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
Number
(
err
.
code
))
.
assertEqual
(
env
.
INVALID_INPUT_PARAMETER_6800101
);
done
();
}
else
{
console
.
log
(
`${TagFrmwk} getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
false
)
.
assertTrue
();
done
();
}
});
try
{
await
audioVolumeGroupManager
.
getSystemVolumeInDb
(
audio
.
AudioVolumeType
.
MEDIA
,
audio
.
DeviceType
.
SPEAKER
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`${TagFrmwk} getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
false
)
.
assertTrue
();
done
();
}
else
{
console
.
log
(
`${TagFrmwk} getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
false
)
.
assertTrue
();
done
();
}
});
}
catch
(
error
)
{
console
.
log
(
`${TagFrmwk}:getSystemVolumeInDb error, check error code: ${error.code}`
);
expect
(
Number
(
error
.
code
))
.
assertEqual
(
env
.
INVALID_INPUT_PARAMETER_6800101
);
done
();
}
})
/**
...
...
@@ -475,17 +487,23 @@ export default function audioManagerTest() {
* @tc.level : Level 0
*/
it
(
'SUB_MULTIMEDIA_AUDIO_VOLUME_GROUP_MANAGER_GETSYSTEMVOLUMEINDB_CALLBACK_1400'
,
0
,
async
function
(
done
)
{
await
audioVolumeGroupManager
.
getSystemVolumeInDb
(
audio
.
AudioVolumeType
.
MEDIA
,
3
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`${TagFrmwk}:getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
Number
(
err
.
code
))
.
assertEqual
(
env
.
INVALID_INPUT_PARAMETER_6800101
);
done
();
}
else
{
console
.
log
(
`${TagFrmwk}:getSystemVolumeInDb : error ${err.message} ${err.code}`
);
expect
(
false
)
.
assertTrue
();
done
();
}
});
try
{
await
audioVolumeGroupManager
.
getSystemVolumeInDb
(
audio
.
AudioVolumeType
.
MEDIA
,
3
,
(
err
,
data
)
=>
{
if
(
err
)
{
console
.
log
(
`${TagFrmwk}:getSystemVolumeInDb error ${err.message} ${err.code}`
);
expect
(
false
)
.
assertTrue
();
done
();
}
else
{
console
.
log
(
`${TagFrmwk}:getSystemVolumeInDb error ${err.message} ${err.code}`
);
expect
(
false
)
.
assertTrue
();
done
();
}
});
}
catch
(
error
)
{
console
.
log
(
`${TagFrmwk}:getSystemVolumeInDb error, check error code: ${error.code}`
);
expect
(
Number
(
error
.
code
))
.
assertEqual
(
env
.
INVALID_INPUT_PARAMETER_6800101
);
done
();
}
})
/**
...
...
multimedia/audio/audio_js_standard/AudioRendererEnhance/Test.json
浏览文件 @
d184ec6d
...
...
@@ -20,6 +20,7 @@
"type"
:
"ShellKit"
,
"run-command"
:
[
"power-shell wakeup"
,
"power-shell setmode 602"
,
"mkdir -p /data/app/el2/100/base/com.example.xts_test_case/haps/entry/files"
,
"chmod 777 -R /data/app/el2/100/base/com.example.xts_test_case/haps/entry"
],
...
...
multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/Const.ets
浏览文件 @
d184ec6d
...
...
@@ -14,8 +14,6 @@
*/
//ts-nocheck
//public invalid
export const SAMPLING_RATE_44100 = 44100;
export const SAMPLING_RATE_48000 = 48000;
export const OUTPUT_NUMBER_0 = 0;
export const OUTPUT_NUMBER_1 = 1;
...
...
multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/GetAndSetRendererSamplingRate.test.ets
已删除
100644 → 0
浏览文件 @
980f9f43
此差异已折叠。
点击以展开。
multimedia/audio/audio_js_standard/AudioRendererEnhance/src/main/ets/test/List.test.ets
浏览文件 @
d184ec6d
...
...
@@ -14,14 +14,12 @@
*/
import getMax_MinStreamVolume from './GetMaxAndMinStreamVolume.test.ets'
import getUnderflowCount from './GetUnderflowCount.test.ets'
import get_setRendererSamplingRate from './GetAndSetRendererSamplingRate.test.ets'
import getCurrentOutputDevices from './GetCurrentOutputDevices.test.ets'
import on_off_outputDeviceChange from './OnOffOutputDeviceChange.test.ets'
export default function testsuite() {
getMax_MinStreamVolume();
getUnderflowCount();
get_setRendererSamplingRate();
getCurrentOutputDevices();
on_off_outputDeviceChange();
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录