[wearable][capability][tc is modified temporarily due to tw2 sensor not support] 56/131856/1
authorjh0219.han <jh0219.han@samsung.com>
Wed, 31 May 2017 05:36:57 +0000 (14:36 +0900)
committerjh0219.han <jh0219.han@samsung.com>
Wed, 31 May 2017 05:36:57 +0000 (14:36 +0900)
Change-Id: I70e14eb15cb905af565dc9b2d27b31cfa45b3340

wearable/tct-capability-tests/capability/unsupported_sensor_barometer.html
wearable/tct-capability-tests/capability/unsupported_sensor_heartratemonitor.html
wearable/tct-capability-tests/capability/unsupported_sensor_magnetometer.html
wearable/tct-capability-tests/capability/unsupported_sensor_photometer.html
wearable/tct-capability-tests/capability/unsupported_sensor_proximity.html
wearable/tct-capability-tests/capability/unsupported_sensor_ultraviolet.html
wearable/tct-capability-tests/tests.xml

index 5cc3f912fd0df539b1e280d1b5c46e16e4cc4780..b6896964b44ac642a92ab6f421dc705875334aa9 100755 (executable)
@@ -32,18 +32,9 @@ Authors:
     <div id="log"></div>
     <script>
     //==== PRIORITY P1
-
         test(function () {
-            if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
-                if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.barometer") === false) {
-                    assert_throws({
-                        name: "NotSupportedError"
-                    }, function () {
-                        tizen.sensorservice.getDefaultSensor("PRESSURE");
-                    });
-                }
-            }
-        });
+            check_unsupported("http://tizen.org/feature/sensor.barometer", tizen.sensorservice);
+        }, document.title);
 
     </script>
   </body>
index 32913c20cb164f2ba923f8dcd54a038c2bbecbd3..b064f9d35683f06c686adf6c128440e19e60a9e0 100755 (executable)
@@ -32,18 +32,9 @@ Authors:
     <div id="log"></div>
     <script>
     //==== PRIORITY P1
-
         test(function () {
-            if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
-                if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.heart_rate_monitor") === false) {
-                    assert_throws({
-                        name: "NotSupportedError"
-                    }, function () {
-                        tizen.sensorservice.getDefaultSensor("HRM_RAW");
-                    });
-                }
-            }
-        });
+            check_unsupported("http://tizen.org/feature/sensor.heart_rate_monitor", tizen.sensorservice);
+        }, document.title);
 
     </script>
   </body>
index 7d2f40f87488fadfb3f30bd0c7bbc38eebfde498..f2063b82d8b57d055540128bc24e45dca91fedca 100755 (executable)
@@ -34,14 +34,8 @@ Authors:
     //==== PRIORITY P1
 
         test(function () {
-            if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.magnetometer") === false) {
-                assert_throws({
-                    name: "NotSupportedError"
-                }, function () {
-                    tizen.sensorservice.getDefaultSensor("MAGNETIC");
-                });
-            }
-        });
+            check_unsupported("http://tizen.org/feature/sensor.magnetometer", tizen.sensorservice);
+        }, document.title);
 
     </script>
   </body>
index 1686f47064501e5cefe522924c23c13ea54dc6d3..9c2e53ac2e799eaf8f0a71d2cc6ef9d2c5d6d201 100755 (executable)
@@ -34,14 +34,8 @@ Authors:
     //==== PRIORITY P1
 
         test(function () {
-            if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.photometer") === false) {
-                assert_throws({
-                    name: "NotSupportedError"
-                }, function () {
-                    tizen.sensorservice.getDefaultSensor("LIGHT");
-                });
-            }
-        });
+            check_unsupported("http://tizen.org/feature/sensor.photometer", tizen.sensorservice);
+        }, document.title);
 
     </script>
   </body>
index dd763c52df99f2103dd920827f961df53efd4ee2..21b7069581cb485b71af02f7e235496313e27839 100755 (executable)
@@ -34,14 +34,8 @@ Authors:
     //==== PRIORITY P1
 
         test(function () {
-            if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.proximity") === false) {
-                assert_throws({
-                    name: "NotSupportedError"
-                }, function () {
-                    tizen.sensorservice.getDefaultSensor("PROXIMITY");
-                });
-            }
-        });
+            check_unsupported("http://tizen.org/feature/sensor.proximity", tizen.sensorservice);
+        }, document.title);
 
     </script>
   </body>
index e223e6f497c7bd1668152840b882edfc869e68bf..223586ef7fcfd6d30275cabd8fdd43849ac3538b 100755 (executable)
@@ -34,14 +34,8 @@ Authors:
     //==== PRIORITY P1
 
         test(function () {
-            if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.ultraviolet") === false) {
-                assert_throws({
-                    name: "NotSupportedError"
-                }, function () {
-                    tizen.sensorservice.getDefaultSensor("ULTRAVIOLET");
-                });
-            }
-        });
+            check_unsupported("http://tizen.org/feature/sensor.ultraviolet", tizen.sensorservice);
+        }, document.title);
 
     </script>
   </body>
index b2810fbad6ead28e1efcc7b6ccfc047f6a0a630d..4e4f18199b8ca45d0e9026e1c223265a175f8eba 100755 (executable)
           <test_script_entry>/opt/tct-capability-tests/capability/unsupported_camera.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="Tizen Device APIs/System/SystemInfo" execution_type="auto" id="unsupported_microphone" priority="P1" purpose="Check if microphone is not supported on the device, it returns 'undefined' when accessed">
+<!--      <testcase component="Tizen Device APIs/System/SystemInfo" execution_type="auto" id="unsupported_microphone" priority="P1" purpose="Check if microphone is not supported on the device, it returns 'undefined' when accessed">
         <description>
           <test_script_entry>/opt/tct-capability-tests/capability/unsupported_microphone.html</test_script_entry>
         </description>
-      </testcase>
+      </testcase> -->
       <testcase component="Tizen Device APIs/System/SystemInfo" execution_type="auto" id="unsupported_speech" priority="P1" purpose="Check if speech api is not supported on the device, it returns 'undefined' when accessed">
         <description>
           <test_script_entry>/opt/tct-capability-tests/capability/unsupported_speech.html</test_script_entry>