[common][tct-sensor-tizen-tests][TSAM-13564 DPTTIZEN-2908 Modify some TCs] 95/144795/1
authorxy.qian <xy.qian@samsung.com>
Fri, 18 Aug 2017 03:28:20 +0000 (11:28 +0800)
committerxy.qian <xy.qian@samsung.com>
Fri, 18 Aug 2017 03:28:20 +0000 (11:28 +0800)
Change-Id: Ia604ad9b1f89b349df0e1117fe5f1079c5762998
Signed-off-by: xy.qian <xy.qian@samsung.com>
common/tct-sensor-tizen-tests/sensor/HRMRawSensor_getHRMRawSensorData.html
common/tct-sensor-tizen-tests/sensor/HRMRawSensor_getHRMRawSensorData_errorCallback_TypeMismatch.html
common/tct-sensor-tizen-tests/sensor/HRMRawSensor_getHRMRawSensorData_errorCallback_invalid_cb.html
common/tct-sensor-tizen-tests/sensor/HRMRawSensor_getHRMRawSensorData_errorCallback_invoked.html
common/tct-sensor-tizen-tests/sensor/HRMRawSensor_getHRMRawSensorData_misarg.html
common/tct-sensor-tizen-tests/sensor/HRMRawSensor_getHRMRawSensorData_successCallback_TypeMismatch.html
common/tct-sensor-tizen-tests/sensor/HRMRawSensor_getHRMRawSensorData_successCallback_invalid_cb.html
common/tct-sensor-tizen-tests/sensor/HRMRawSensor_getHRMRawSensorData_with_errorCallback.html
common/tct-sensor-tizen-tests/sensor/SensorHRMRawData_lightIntensity_attribute.html
common/tct-sensor-tizen-tests/sensor/SensorHRMRawData_lightType_attribute.html

index 207c44b2d584ff99488498fcf612f66be412273f..2a84114ba69e94659d2eaee9e46271c65ffe1a62 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onsuccessC
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();
index 4ad9efa0979e48c30879d06a2f4488b7db09d16d..44ada4114abed1c8fdccc7027a4320188829133e 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), exceptionName, i, conversi
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();
index 496eca32e946cc0959823b980c83c561cb3023e4..d40e265b4924389b494a82ff68756c5c0b98f69d 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), invalidcallback, onsuccess
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();
index 83016e6220b778054d1da1d1803213ee0c8bc557..1b8a31f780d931010b2788bba15f79085db0f41e 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), onerrorCB, onGetSuccessCB,
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     onGetSuccessCB = t.step_func(function (sensorData) {
         assert_unreached("SuccessCallback should not be called");
index 0a352335dc49deda55c1bbe6203363af3065b190..20873ad5a0cceea77224ab44a14f46ecedc05d74 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), onsuccessCB, HRMrawsensor;
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();
index 8ac0d8b9e7308a4ba21d16e39543f45b2d666917..abfaf8810cff74fd5ed54850e7ca0ea6eb9fcfd3 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), exceptionName, i, conversi
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();
index c374e63bafdd7fb8cb55be294396c7f5b3546b86..e89967f7dd0366240951ee98855c0db7f479fd1b 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), invalidcallback, onsuccess
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();
index 542cd4f9c467295063fdcb016bf9efad77f24744..bbc8eb7d5b65c8d685d9f9110164cd7296a784b9 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onsuccessC
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();
index 090d43ddebcfa7db4c822171a2be37020e12f4e5..3495a1d83225bb4e9a8ee87bd0b93beabffe5e58 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onerrorCB,
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();
index a48050f5563ef5b561aa085581ab01fad6c0c718..5a0dd348ed38d912bbe261d23a80e0f1a94aa0e9 100755 (executable)
@@ -42,6 +42,11 @@ var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onerrorCB,
 
 t.step(function () {
     HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
+    if(!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_green") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_red") &&
+        !tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.heart_rate_monitor.led_ir")) {
+        t.done();
+    }
 
     add_result_callback(function () {
         HRMrawsensor.stop();