提交 8449ce2e 编写于 作者: Q qlw

<Audio枚举值覆盖>

Signed-off-by: Nqlw <qinliwen3@huawei.com>
上级 37372617
...@@ -1070,6 +1070,46 @@ describe('audioManger_audio1', function () { ...@@ -1070,6 +1070,46 @@ describe('audioManger_audio1', function () {
done(); done();
}) })
/* *
* @tc.number : SUB_AUDIO_MANAGER_DeviceType_004
* @tc.name : DeviceType - WIRED_HEADPHONES
* @tc.desc : DeviceType - WIRED_HEADPHONES
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_AUDIO_MANAGER_DeviceType_003', 0, async function (done) {
expect(audio.DeviceType.WIRED_HEADPHONES).assertEqual(4);
await sleep(50);
done();
})
/* *
* @tc.number : SUB_AUDIO_MANAGER_DeviceChangeType_001
* @tc.name : DeviceChangeType - CONNECT
* @tc.desc : DeviceChangeType - CONNECT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_AUDIO_MANAGER_DeviceChangeType_001', 0, async function (done) {
expect(audio.DeviceChangeType.CONNECT ).assertEqual(0);
await sleep(50);
done();
})
/* *
* @tc.number : SUB_AUDIO_MANAGER_DeviceChangeType_002
* @tc.name : DeviceChangeType - DISCONNECT
* @tc.desc : DeviceChangeType - DISCONNECT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_AUDIO_MANAGER_DeviceChangeType_002', 0, async function (done) {
expect(audio.DeviceChangeType.DISCONNECT ).assertEqual(1);
await sleep(50);
done();
})
}) })
\ No newline at end of file
...@@ -4218,4 +4218,32 @@ describe('audioManger_audio2', function () { ...@@ -4218,4 +4218,32 @@ describe('audioManger_audio2', function () {
done(); done();
}) })
/* *
* @tc.number : SUB_AUDIO_MANAGER_TnterruptActionType_001
* @tc.name : TnterruptActionType - TYPE_ACTIVATED
* @tc.desc : TnterruptActionType - TYPE_ACTIVATED
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_AUDIO_MANAGER_TnterruptActionType_001', 0, async function (done) {
expect(audio.TnterruptActionType.TYPE_ACTIVATED).assertEqual(0);
await sleep(50);
done();
})
/* *
* @tc.number : SUB_AUDIO_MANAGER_TnterruptActionType_002
* @tc.name : TnterruptActionType - TYPE_INTERRUPT
* @tc.desc : TnterruptActionType - TYPE_INTERRUPT
* @tc.size : MEDIUM
* @tc.type : Function
* @tc.level : Level 0
*/
it('SUB_AUDIO_MANAGER_TnterruptActionType_002', 0, async function (done) {
expect(audio.TnterruptActionType.TYPE_INTERRUPT).assertEqual(1);
await sleep(50);
done();
})
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册