提交 5fb595f5 编写于 作者: Q qinliwen

<audio用例修改>

Signed-off-by: Nqinliwen <qinliwen3@huawei.com>
上级 1b5a7888
......@@ -5109,23 +5109,23 @@ describe('audioManager', function () {
*/
it('SUB_AUDIO_MANAGER_DeviceType_001', 0, async function (done) {
expect(audio.DeviceType.INVALID).assertEqual(0);
console.info("audio.DeviceType.INVALID:"+audio.DeviceType.INVALID);
console.info("audio.DeviceType.INVALID:" + audio.DeviceType.INVALID);
expect(audio.DeviceType.EARPIECE).assertEqual(1);
console.info("audio.DeviceType.EARPIECE:"+audio.DeviceType.EARPIECE);
console.info("audio.DeviceType.EARPIECE:" + audio.DeviceType.EARPIECE);
expect(audio.DeviceType.SPEAKER).assertEqual(2);
console.info("audio.DeviceType.SPEAKER:"+audio.DeviceType.SPEAKER);
console.info("audio.DeviceType.SPEAKER:" + audio.DeviceType.SPEAKER);
expect(audio.DeviceType.WIRED_HEADSET).assertEqual(3);
console.info("audio.DeviceType.WIRED_HEADSET:"+audio.DeviceType.WIRED_HEADSET);
console.info("audio.DeviceType.WIRED_HEADSET:" + audio.DeviceType.WIRED_HEADSET);
expect(audio.DeviceType.WIRED_HEADPHONES).assertEqual(4);
console.info("audio.DeviceType.WIRED_HEADPHONES:"+audio.DeviceType.WIRED_HEADPHONES);
console.info("audio.DeviceType.WIRED_HEADPHONES:" + audio.DeviceType.WIRED_HEADPHONES);
expect(audio.DeviceType.BLUETOOTH_SCO).assertEqual(7);
console.info("audio.DeviceType.BLUETOOTH_SCO:"+audio.DeviceType.BLUETOOTH_SCO);
console.info("audio.DeviceType.BLUETOOTH_SCO:" + audio.DeviceType.BLUETOOTH_SCO);
expect(audio.DeviceType.BLUETOOTH_A2DP).assertEqual(8);
console.info("audio.DeviceType.BLUETOOTH_A2DP:"+audio.DeviceType.BLUETOOTH_A2DP);
console.info("audio.DeviceType.BLUETOOTH_A2DP:" + audio.DeviceType.BLUETOOTH_A2DP);
expect(audio.DeviceType.MIC).assertEqual(15);
console.info("audio.DeviceType.MIC:"+audio.DeviceType.MIC);
console.info("audio.DeviceType.MIC:" + audio.DeviceType.MIC);
expect(audio.DeviceType.USB_HEADSET).assertEqual(22);
console.info("audio.DeviceType.USB_HEADSET:"+audio.DeviceType.USB_HEADSET);
console.info("audio.DeviceType.USB_HEADSET:" + audio.DeviceType.USB_HEADSET);
await sleep(50);
done();
})
......@@ -5140,9 +5140,9 @@ describe('audioManager', function () {
*/
it('SUB_AUDIO_MANAGER_DeviceRole_001', 0, async function (done) {
expect(audio.DeviceRole.INPUT_DEVICE).assertEqual(1);
console.info("audio.DeviceRole.INPUT_DEVICE :"+audio.DeviceRole.INPUT_DEVICE);
console.info("audio.DeviceRole.INPUT_DEVICE :" + audio.DeviceRole.INPUT_DEVICE);
expect(audio.DeviceRole.OUTPUT_DEVICE).assertEqual(2);
console.info("audio.DeviceRole.OUTPUT_DEVICE :"+audio.DeviceRole.OUTPUT_DEVICE);
console.info("audio.DeviceRole.OUTPUT_DEVICE :" + audio.DeviceRole.OUTPUT_DEVICE);
await sleep(50);
done();
})
......@@ -5455,7 +5455,7 @@ describe('audioManager', function () {
sRate = null;
cCount = null;
cMask = null;
audioManager.getRoutingManager(async (err,AudioRoutingManager)=>{
audioManager.getRoutingManager(async (err, AudioRoutingManager) => {
if (err) {
console.error(`AudioFrameworkTest: Callback: failed to get RoutingManager ${err.message}`);
expect().assertFail();
......@@ -5495,7 +5495,7 @@ describe('audioManager', function () {
sRate = null;
cCount = null;
cMask = null;
audioManager.getRoutingManager(async (err,AudioRoutingManager)=>{
audioManager.getRoutingManager(async (err, AudioRoutingManager) => {
if (err) {
console.error(`AudioFrameworkTest:Callback:failed to get RoutingManager ${err.message}`);
expect().assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册