<test_definition>
<suite name="tct-voicecontrol-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
<set name="VoiceControl" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/speech.recognition"/>
+ </capabilities>
<testcase purpose="Check if interface VoiceControlClientManagerObject exists, it should not." component="TizenAPI/UIX/VoiceControl" execution_type="auto" id="VoiceControlClientManagerObject_notexist">
<description>
<test_script_entry>/opt/tct-voicecontrol-tizen-tests/voicecontrol/VoiceControlClientManagerObject_notexist.html</test_script_entry>
<set name="VoiceControl_manual" type="js">
<capabilities>
<capability name="http://tizen.org/feature/platform.core.cpu.arch.armv7"/>
+ <capability name="http://tizen.org/feature/speech.recognition"/>
</capabilities>
<testcase purpose="Check if VoiceControlResultCallback is normally called" onload_delay="60" component="TizenAPI/UIX/VoiceControl" execution_type="manual" id="VoiceControlResultCallback_onresult">
<description>
//==== PRIORITY P1
test(function () {
- check_unsupported("http://tizen.org/feature/network.bluetooth.audio.media", tizen.mediakey);
- }, document.title);
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/network.bluetooth.audio.media") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.mediakey.setMediaKeyEventListener(function(){});
+ });
+ }
+ });
</script>
</body>
</html>
\ No newline at end of file
//==== PRIORITY P1
test(function () {
- check_unsupported("http://tizen.org/feature/network.bluetooth.audio.media", tizen.mediakey);
- }, document.title);
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/network.bluetooth.audio.media") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.mediakey.setMediaKeyEventListener(function(){});
+ });
+ }
+ });
</script>
</body>
</html>
\ No newline at end of file
//==== PRIORITY P1
test(function () {
- check_unsupported("http://tizen.org/feature/network.bluetooth.audio.media", tizen.mediakey);
- }, document.title);
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/network.bluetooth.audio.media") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.mediakey.setMediaKeyEventListener(function(){});
+ });
+ }
+ });
</script>
</body>
</html>
\ No newline at end of file