<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>
<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>
//==== 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>
//==== 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>
//==== 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>
//==== 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>
<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>