提交 aa6a539a 编写于 作者: F fjr

sound

Signed-off-by: Nfjr <fujiarui6@huawei.com>
上级 6a952b5e
......@@ -30,7 +30,7 @@ describe('ActsAnsPublishSoundTest', function () {
var sound = data.sortingMap.sortings[hashCode].slot.sound
console.info("=============Ans_PublishSound_0100 onConsume sound============>" + sound);
if (timesOfOnConsume == 1){
expect(sound).assertEqual("file://system/etc/Light.ogg");
expect(sound != undefined).assertTrue();
console.info("=============Ans_PublishSound_0100 onConsume timesOfOnConsume1============>");
} else if (timesOfOnConsume == 2){
expect(sound).assertEqual("sound_0100");
......@@ -118,7 +118,7 @@ describe('ActsAnsPublishSoundTest', function () {
var sound = data.sortingMap.sortings[hashCode].slot.sound
console.info("=============Ans_PublishSound_0200 onConsume sound============>" + sound);
if (timesOfOnConsume == 1){
expect(sound).assertEqual("file://system/etc/Light.ogg");
expect(sound!= undefined).assertTrue();
console.info("=============Ans_PublishSound_0200 onConsume timesOfOnConsume1============>");
} else if (timesOfOnConsume == 2){
expect(sound).assertEqual("sound_0200");
......@@ -963,6 +963,7 @@ describe('ActsAnsPublishSoundTest', function () {
notify.addSlot({
type:notify.SlotType.UNKNOWN_TYPE,
sound:"sound_1100",
vibrationEnabled:true,
vibrationValues:[11,0,11,0],
});
var notificationRequest = {
......@@ -1001,6 +1002,7 @@ describe('ActsAnsPublishSoundTest', function () {
{
type:notify.SlotType.UNKNOWN_TYPE,
sound:"sound_1100_set",
vibrationEnabled:true,
vibrationValues:[11,11,11,11],
}).then(()=>{
console.info("=======Ans_PublishSound_1100 publish1 then setSlotByBundle then======>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册