From: yuanzhongyuan Date: Fri, 2 Jun 2017 07:27:39 +0000 (+0800) Subject: [common][sound][fix tc issue] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3cc8c17ceb6b99c7880fcda3e0d2da66df064e4d;p=test%2Ftct%2Fweb%2Fapi.git [common][sound][fix tc issue] Change-Id: I72824437bf95f94c1c705f0802540257fd371fbf --- diff --git a/common/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList.html b/common/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList.html index 65bac3023..9492e4ef0 100755 --- a/common/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList.html +++ b/common/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList.html @@ -31,29 +31,15 @@ Authors: //==== LABEL Check if soundManager::getActivatedDeviceList() method can be called //==== SPEC Tizen Web API:Multimedia:Sound:SoundManager:getActivatedDeviceList M //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sound.html -//==== ONLOAD_DELAY 20 -//==== EXECUTION_TYPE manual -//==== PRE Before Click run, make sure earphone is plugged in and music is played //==== PRIORITY: P1 //==== TEST_CRITERIA MR MNA -setup({timeout: 20000}); - -var t = async_test(document.title, {timeout: 20000}), changeCallback, retValue = null; - -t.step(function () { - changeCallback = t.step_func(function (info) { - alert("Play music and turn off this alert"); - retValue = tizen.sound.getActivatedDeviceList(); - assert_type(retValue, "array", "method should return array type"); - assert_type(retValue[0], "object", "value should be object"); - t.done(); - }); - - tizen.sound.addDeviceStateChangeListener(changeCallback); - -}); +test(function () { + retValue = tizen.sound.getActivatedDeviceList(); + assert_type(retValue, "array", "method should return array type"); + assert_type(retValue[0], "object", "value should be object"); +}, document.title); - \ No newline at end of file + diff --git a/common/tct-sound-tizen-tests/tests.xml b/common/tct-sound-tizen-tests/tests.xml index 321bd4420..63dc2ec01 100755 --- a/common/tct-sound-tizen-tests/tests.xml +++ b/common/tct-sound-tizen-tests/tests.xml @@ -301,15 +301,8 @@ /opt/tct-sound-tizen-tests/sound/SoundManager_addDeviceStateChangeListener_misarg.html - + - Before Click run, make sure earphone is plugged in target. After Click run, play the music - - - Plug in earphone and play music - Pass - - /opt/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList.html @@ -663,15 +656,8 @@ /opt/tct-sound-tizen-tests/sound/SoundManager_addDeviceStateChangeListener_misarg.html - + - Before Click run, bluetooth headset should be not connected with target. After Click run, make sure bluetooth headset connection with target - - - Before turn off the alert, play music - Pass - - /opt/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList.html @@ -1001,6 +987,11 @@ /opt/tct-sound-tizen-tests/sound/SoundManager_addDeviceStateChangeListener_misarg.html + + + /opt/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList.html + + /opt/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList_exist.html @@ -1056,18 +1047,6 @@ /opt/tct-sound-tizen-tests/sound/SoundManager_addDeviceStateChangeListener.html - - - Before Click run, bluetooth headset should be not connected with target. After Click run, make sure bluetooth headset connection with target - - - Before turn off the alert, play music - Pass - - - /opt/tct-sound-tizen-tests/sound/SoundManager_getActivatedDeviceList.html - - Before Click run, remove the earphone from target. After Click run, make sure earphone is plugged in