From: jh0219.han Date: Wed, 31 May 2017 05:36:57 +0000 (+0900) Subject: [wearable][capability][tc is modified temporarily due to tw2 sensor not support] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ed3a231dfac2bdc3af1ce823e16662cef88330c;p=test%2Ftct%2Fweb%2Fapi.git [wearable][capability][tc is modified temporarily due to tw2 sensor not support] Change-Id: I70e14eb15cb905af565dc9b2d27b31cfa45b3340 --- diff --git a/wearable/tct-capability-tests/capability/unsupported_sensor_barometer.html b/wearable/tct-capability-tests/capability/unsupported_sensor_barometer.html index 5cc3f912f..b6896964b 100755 --- a/wearable/tct-capability-tests/capability/unsupported_sensor_barometer.html +++ b/wearable/tct-capability-tests/capability/unsupported_sensor_barometer.html @@ -32,18 +32,9 @@ Authors:
diff --git a/wearable/tct-capability-tests/capability/unsupported_sensor_heartratemonitor.html b/wearable/tct-capability-tests/capability/unsupported_sensor_heartratemonitor.html index 32913c20c..b064f9d35 100755 --- a/wearable/tct-capability-tests/capability/unsupported_sensor_heartratemonitor.html +++ b/wearable/tct-capability-tests/capability/unsupported_sensor_heartratemonitor.html @@ -32,18 +32,9 @@ Authors:
diff --git a/wearable/tct-capability-tests/capability/unsupported_sensor_magnetometer.html b/wearable/tct-capability-tests/capability/unsupported_sensor_magnetometer.html index 7d2f40f87..f2063b82d 100755 --- a/wearable/tct-capability-tests/capability/unsupported_sensor_magnetometer.html +++ b/wearable/tct-capability-tests/capability/unsupported_sensor_magnetometer.html @@ -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); diff --git a/wearable/tct-capability-tests/capability/unsupported_sensor_photometer.html b/wearable/tct-capability-tests/capability/unsupported_sensor_photometer.html index 1686f4706..9c2e53ac2 100755 --- a/wearable/tct-capability-tests/capability/unsupported_sensor_photometer.html +++ b/wearable/tct-capability-tests/capability/unsupported_sensor_photometer.html @@ -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); diff --git a/wearable/tct-capability-tests/capability/unsupported_sensor_proximity.html b/wearable/tct-capability-tests/capability/unsupported_sensor_proximity.html index dd763c52d..21b706958 100755 --- a/wearable/tct-capability-tests/capability/unsupported_sensor_proximity.html +++ b/wearable/tct-capability-tests/capability/unsupported_sensor_proximity.html @@ -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); diff --git a/wearable/tct-capability-tests/capability/unsupported_sensor_ultraviolet.html b/wearable/tct-capability-tests/capability/unsupported_sensor_ultraviolet.html index e223e6f49..223586ef7 100755 --- a/wearable/tct-capability-tests/capability/unsupported_sensor_ultraviolet.html +++ b/wearable/tct-capability-tests/capability/unsupported_sensor_ultraviolet.html @@ -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); diff --git a/wearable/tct-capability-tests/tests.xml b/wearable/tct-capability-tests/tests.xml index b2810fbad..4e4f18199 100755 --- a/wearable/tct-capability-tests/tests.xml +++ b/wearable/tct-capability-tests/tests.xml @@ -74,11 +74,11 @@ /opt/tct-capability-tests/capability/unsupported_camera.html - + /opt/tct-capability-tests/capability/unsupported_speech.html