[capabiliy, voicecontrol][check systeminfo value before tc running] 44/174744/1
authorzy123.yuan <zy123.yuan@samsung.com>
Wed, 4 Apr 2018 02:31:42 +0000 (10:31 +0800)
committerzy123.yuan <zy123.yuan@samsung.com>
Wed, 4 Apr 2018 02:31:42 +0000 (10:31 +0800)
Change-Id: I7e57a326cc93e1afeeae70e9dd614f5fcc489f8a

common/tct-voicecontrol-tizen-tests/tests.xml
mobile/tct-capability-tests/capability/unsupported_mediakey.html
tv/tct-capability-tests/capability/unsupported_mediakey.html
wearable/tct-capability-tests/capability/unsupported_mediakey.html

index deed3e6e83e0c575fa25c9b6a538173dfd474f46..aa5a32e6597ca0962aee4080410c90a35be5d2c9 100644 (file)
@@ -3,6 +3,9 @@
 <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>
index 6d149402348b589ef5970cf51b4ba92b9c7e0864..60108dfb2fc4ba5f6fd3a2f07ee339609b044417 100755 (executable)
@@ -34,8 +34,14 @@ Authors:
     //==== 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
index 6d149402348b589ef5970cf51b4ba92b9c7e0864..60108dfb2fc4ba5f6fd3a2f07ee339609b044417 100755 (executable)
@@ -34,8 +34,14 @@ Authors:
     //==== 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
index 6d149402348b589ef5970cf51b4ba92b9c7e0864..60108dfb2fc4ba5f6fd3a2f07ee339609b044417 100755 (executable)
@@ -34,8 +34,14 @@ Authors:
     //==== 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