[common][tct-sensor-tizen-tests][TWDAPI-170 DPTTIZEN-2931 Add TCs due to spec change] 93/159893/2
authorxy.qian <xy.qian@samsung.com>
Mon, 13 Nov 2017 12:10:08 +0000 (20:10 +0800)
committerxy.qian <xy.qian@samsung.com>
Mon, 13 Nov 2017 12:21:39 +0000 (20:21 +0800)
Change-Id: Ifa480d15df7787788316bdd9bfe1b76406b6f5f3
Signed-off-by: xy.qian <xy.qian@samsung.com>
18 files changed:
common/tct-sensor-tizen-tests/config.xml
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_extend.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invoked.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_exist.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_misarg.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_with_errorCallback.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/AccelerationSensor_notexist.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_notexist.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_x_attribute.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_y_attribute.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_z_attribute.html [new file with mode: 0644]
common/tct-sensor-tizen-tests/tests.full.xml
common/tct-sensor-tizen-tests/tests.xml

index 92b23fcf5ab2a8844625c7bd55e9bb8a760f19e8..d0792c0189f193139f82fad41fd98f8a57c85c25 100755 (executable)
@@ -3,6 +3,7 @@
   <name>tct-sensor-tizen-tests</name>
   <tizen:privilege name="http://tizen.org/privilege/healthinfo"/>
   <feature name="http://tizen.org/feature/sensor"/>
+  <feature name="http://tizen.org/feature/sensor.accelerometer"/>
   <feature name="http://tizen.org/feature/sensor.photometer"/>
   <feature name="http://tizen.org/feature/sensor.magnetometer"/>
   <feature name="http://tizen.org/feature/sensor.barometer"/>
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_extend.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_extend.html
new file mode 100644 (file)
index 0000000..d22f420
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_extend</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_extend
+//==== LABEL Check if AccelerationSensor is extendable
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:AccelerationSensor U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA OBX
+
+test(function () {
+    var accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+    check_extensibility(accelerationSensor);
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData.html
new file mode 100644 (file)
index 0000000..40d279c
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData
+//==== LABEL Check if AccelerationSensor::getAccelerationSensorData() method works properly
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P1
+//==== TEST_CRITERIA MMINA MR
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onsuccessCB, accelerationSensor, retValue = null;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onGetSuccessCB = t.step_func(function (sensorData) {
+        assert_not_equals(sensorData.x, null, "Fail to getAccelerationSensorData");
+        assert_not_equals(sensorData.y, null, "Fail to getAccelerationSensorData");
+        assert_not_equals(sensorData.z, null, "Fail to getAccelerationSensorData");
+        assert_equals(retValue, undefined, "getAccelerationSensorData returns wrong value");
+        t.done();
+    });
+
+    onsuccessCB = t.step_func(function () {
+        retValue = accelerationSensor.getAccelerationSensorData(onGetSuccessCB);
+    });
+
+    gyroscopeUncalibratedSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..c30fc3b
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch
+//==== LABEL Check if AccelerationSensor::getAccelerationSensorData() with incorrect errorCallback argument throws exception
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), exceptionName, i, conversionTable, onGetSuccessCB, onerrorCB, accelerationSensor, onsuccessCB;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onGetSuccessCB = t.step_func(function () {
+        assert_unreached("Unexpected successCallback");
+    });
+
+    onsuccessCB = t.step_func(function () {
+        conversionTable = getTypeConversionExceptions("functionObject", true);
+        for (i = 0; i < conversionTable.length; i++) {
+            onerrorCB = conversionTable[i][0];
+            exceptionName = conversionTable[i][1];
+            assert_throws({name: exceptionName}, function () {
+                accelerationSensor.getAccelerationSensorData(onGetSuccessCB, onerrorCB);
+            }, exceptionName + " should be thrown - given incorrect errorCallback.");
+        }
+        t.done();
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb.html
new file mode 100644 (file)
index 0000000..0cf2750
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb
+//==== LABEL Check if AccelerationSensor::getAccelerationSensorData() method throws exception when errorCallback is invalid
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), invalidcallback, onsuccessCB, accelerationSensor, onGetSuccessCB;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    invalidcallback = {
+        onerror: t.step_func(function (error) {
+            assert_unreached("getAccelerationSensorData() errorCallback invoked");
+        })
+    };
+
+    onGetSuccessCB = t.step_func(function (sensorData) {
+        assert_unreached("SuccessCallback should not be called");
+    });
+
+    onsuccessCB = t.step_func(function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+            accelerationSensor.getAccelerationSensorData(onGetSuccessCB, invalidcallback);
+        },"TypeMismatchError Should throw exception");
+        t.done();
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invoked.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invoked.html
new file mode 100644 (file)
index 0000000..a39b63c
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData_errorCallback_invoked</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData_errorCallback_invoked
+//==== LABEL Check exception in errorCallback of AccelerationSensor::getAccelerationSensorData() method
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P2
+//==== TEST_CRITERIA MERRCB
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onerrorCB, onGetSuccessCB, accelerationSensor;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onGetSuccessCB = t.step_func(function (sensorData) {
+        assert_unreached("SuccessCallback should not be called");
+    });
+
+    onerrorCB = t.step_func(function (error) {
+        assert_equals("ServiceNotAvailableError", error.name, "Incorrect error name.");
+        t.done();
+    });
+
+    accelerationSensor.getAccelerationSensorData(onGetSuccessCB, onerrorCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_exist.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_exist.html
new file mode 100644 (file)
index 0000000..ca2cb67
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData_exist
+//==== LABEL Check if AccelerationSensor::getAccelerationSensorData() method exists
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    var accelerationSensor;
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+    check_method_exists(accelerationSensor, "getAccelerationSensorData");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_misarg.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_misarg.html
new file mode 100644 (file)
index 0000000..ddd7c52
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData_misarg
+//==== LABEL Check if AccelerationSensor::getAccelerationSensorData() throws exception when successCallback is missing
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onsuccessCB, accelerationSensor;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onsuccessCB = t.step_func(function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+            accelerationSensor.getAccelerationSensorData();
+        }, "TypeMismatchError should be thrown");
+        t.done();
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..5dfe817
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch
+//==== LABEL Check if AccelerationSensor::getAccelerationSensorData() with incorrect successCallback argument throws exception
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), exceptionName, i, conversionTable, onGetSuccessCB, onerrorCB, accelerationSensor, onsuccessCB;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onerrorCB = t.step_func(function (error) {
+        assert_unreached("getAccelerationSensorData() error callback invoked: name:" + error.name + ", msg: " + error.message);
+    });
+
+    onsuccessCB = t.step_func(function () {
+        conversionTable = getTypeConversionExceptions("functionObject", false);
+        for (i = 0; i < conversionTable.length; i++) {
+            onGetSuccessCB = conversionTable[i][0];
+            exceptionName = conversionTable[i][1];
+            assert_throws({name: exceptionName}, function () {
+                accelerationSensor.getAccelerationSensorData(onGetSuccessCB, onerrorCB);
+            }, exceptionName + " should be thrown - given incorrect successCallback.");
+        }
+        t.done();
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb.html
new file mode 100644 (file)
index 0000000..14ac1b5
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb
+//==== LABEL Check if AccelerationSensor::getAccelerationSensorData() method throws exception when successCallback is invalid
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), invalidcallback, onsuccessCB, accelerationSensor;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    invalidcallback = {
+        onsuccess: t.step_func(function (sensorData) {
+            assert_unreached("getAccelerationSensorData() successcallback invoked");
+        })
+    };
+
+    onsuccessCB = t.step_func(function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+            accelerationSensor.getAccelerationSensorData(invalidcallback);
+        }, "Should throw exception");
+        t.done();
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_with_errorCallback.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_with_errorCallback.html
new file mode 100644 (file)
index 0000000..ddea49b
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_getAccelerationSensorData_with_errorCallback</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_getAccelerationSensorData_with_errorCallback
+//==== LABEL Check if AccelerationSensor::getAccelerationSensorData() method works properly with optional argument
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:getAccelerationSensorData M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P1
+//==== TEST_CRITERIA MOA
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onsuccessCB, accelerationSensor, onerrorCB;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onGetSuccessCB = t.step_func(function (sensorData) {
+        assert_not_equals(sensorData.x, null, "Fail to getAccelerationSensorData");
+        assert_not_equals(sensorData.y, null, "Fail to getAccelerationSensorData");
+        assert_not_equals(sensorData.z, null, "Fail to getAccelerationSensorData");
+        t.done();
+    });
+
+    onerrorCB = t.step_func(function (error) {
+        assert_unreached("getAccelerationSensorData() error callback invoked: name: " + error.message + ", msg: " + error.name);
+    });
+
+    onsuccessCB = t.step_func(function () {
+        accelerationSensor.getAccelerationSensorData(onGetSuccessCB, onerrorCB);
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_notexist.html b/common/tct-sensor-tizen-tests/sensor/AccelerationSensor_notexist.html
new file mode 100644 (file)
index 0000000..52fb64e
--- /dev/null
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>AccelerationSensor_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AccelerationSensor_notexist
+//==== LABEL Check if interface AccelerationSensor exists, it should not
+//==== SPEC Tizen Web API:System:Sensor:AccelerationSensor:AccelerationSensor U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA NIO
+
+test(function () {
+    check_no_interface_object("AccelerationSensor");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_notexist.html b/common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_notexist.html
new file mode 100644 (file)
index 0000000..79eb672
--- /dev/null
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>SensorAccelerationData_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SensorAccelerationData_notexist
+//==== LABEL Check if interface SensorAccelerationData exists, it should not.
+//==== SPEC Tizen Web API:System:Sensor:SensorAccelerationData:SensorAccelerationData U
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA NIO
+//==== PRIORITY P3
+
+test(function () {
+    check_no_interface_object("SensorAccelerationData");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_x_attribute.html b/common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_x_attribute.html
new file mode 100644 (file)
index 0000000..2352b78
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>SensorAccelerationData_x_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SensorAccelerationData_x_attribute
+//==== LABEL Check if x attribute of SensorAccelerationData exists, type is double and readonly
+//==== SPEC Tizen Web API:System:Sensor:SensorAccelerationData:x A
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO AVL
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onerrorCB, onsuccessCB, accelerationSensor;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onGetSuccessCB = t.step_func(function (sensorData) {
+        check_readonly(sensorData, "x", sensorData.x, "number", sensorData.x + 1);
+        assert_greater_than_equal(sensorData.x, -19.6, "sensorData.x should in range");
+        assert_less_than_equal(sensorData.x, 19.6, "sensorData.x should in range");
+        t.done();
+    });
+
+    onerrorCB = t.step_func(function (error) {
+        assert_unreached("getAccelerationSensorData() error callback invoked: name: " + error.message + ", msg: " + error.name);
+    });
+
+    onsuccessCB = t.step_func(function () {
+        accelerationSensor.getAccelerationSensorData(onGetSuccessCB, onerrorCB);
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_y_attribute.html b/common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_y_attribute.html
new file mode 100644 (file)
index 0000000..f8a72e7
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>SensorAccelerationData_y_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SensorAccelerationData_y_attribute
+//==== LABEL Check if y attribute of SensorAccelerationData exists, type is double and readonly
+//==== SPEC Tizen Web API:System:Sensor:SensorAccelerationData:y A
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO AVL
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onerrorCB, onsuccessCB, accelerationSensor;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onGetSuccessCB = t.step_func(function (sensorData) {
+        check_readonly(sensorData, "y", sensorData.y, "number", sensorData.y + 1);
+        assert_greater_than_equal(sensorData.y, -19.6, "sensorData.y should in range");
+        assert_less_than_equal(sensorData.y, 19.6, "sensorData.y should in range");
+        t.done();
+    });
+
+    onerrorCB = t.step_func(function (error) {
+        assert_unreached("getAccelerationSensorData() error callback invoked: name: " + error.message + ", msg: " + error.name);
+    });
+
+    onsuccessCB = t.step_func(function () {
+        accelerationSensor.getAccelerationSensorData(onGetSuccessCB, onerrorCB);
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_z_attribute.html b/common/tct-sensor-tizen-tests/sensor/SensorAccelerationData_z_attribute.html
new file mode 100644 (file)
index 0000000..b9e6b35
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>SensorAccelerationData_z_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SensorAccelerationData_z_attribute
+//==== LABEL Check if z attribute of SensorAccelerationData exists, type is double and readonly
+//==== SPEC Tizen Web API:System:Sensor:SensorAccelerationData:z A
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO AVL
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onGetSuccessCB, onerrorCB, onsuccessCB, accelerationSensor;
+
+t.step(function () {
+    accelerationSensor = tizen.sensorservice.getDefaultSensor("ACCELERATION");
+
+    add_result_callback(function () {
+        accelerationSensor.stop();
+    });
+
+    onGetSuccessCB = t.step_func(function (sensorData) {
+        check_readonly(sensorData, "z", sensorData.z, "number", sensorData.z + 1);
+        assert_greater_than_equal(sensorData.z, -19.6, "sensorData.z should in range");
+        assert_less_than_equal(sensorData.z, 19.6, "sensorData.z should in range");
+        t.done();
+    });
+
+    onerrorCB = t.step_func(function (error) {
+        assert_unreached("getAccelerationSensorData() error callback invoked: name: " + error.message + ", msg: " + error.name);
+    });
+
+    onsuccessCB = t.step_func(function () {
+        accelerationSensor.getAccelerationSensorData(onGetSuccessCB, onerrorCB);
+    });
+
+    accelerationSensor.start(onsuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
index 7f99e5985f15e824ab648bd5aa6f8d5e81c7dd01..1965c1439b2d4eedcb5b42e44140c24cf89ecfdc 100755 (executable)
         </specs>
       </testcase>
     </set>
+    <set name="AccelerationSensor_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE_FULL</value>
+        </capability>
+        <capability name="http://tizen.org/feature/sensor.accelerometer"/>
+      </capabilities>
+      <testcase purpose="Check if AccelerationSensor is extendable" type="compliance" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P3" id="AccelerationSensor_extend">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" usage="true" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="AccelerationSensor_getAccelerationSensorData">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect errorCallback argument throws exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check exception in errorCallback of AccelerationSensor::getAccelerationSensorData() method" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invoked.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method exists" type="compliance" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P0" id="AccelerationSensor_getAccelerationSensorData_exist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() throws exception when successCallback is missing" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_misarg">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect successCallback argument throws exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly with optional argument" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="AccelerationSensor_getAccelerationSensorData_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface AccelerationSensor exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P3" id="AccelerationSensor_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" usage="true" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface SensorAccelerationData exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P3" id="SensorAccelerationData_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SensorAccelerationData" usage="true" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if x attribute of SensorAccelerationData exists, type is double and readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="SensorAccelerationData_x_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_x_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SensorAccelerationData" element_type="attribute" element_name="x" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if y attribute of SensorAccelerationData exists, type is double and readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="SensorAccelerationData_y_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_y_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SensorAccelerationData" element_type="attribute" element_name="y" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if z attribute of SensorAccelerationData exists, type is double and readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="SensorAccelerationData_z_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_z_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SensorAccelerationData" element_type="attribute" element_name="z" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
     <set name="Sensor_wearable" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
         </specs>
       </testcase>
     </set>
+    <set name="AccelerationSensor_wearable" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value>
+        </capability>
+        <capability name="http://tizen.org/feature/sensor.accelerometer"/>
+      </capabilities>
+      <testcase purpose="Check if AccelerationSensor is extendable" type="compliance" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P3" id="AccelerationSensor_extend">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" usage="true" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="AccelerationSensor_getAccelerationSensorData">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect errorCallback argument throws exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when errorCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check exception in errorCallback of AccelerationSensor::getAccelerationSensorData() method" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invoked.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method exists" type="compliance" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P0" id="AccelerationSensor_getAccelerationSensorData_exist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() throws exception when successCallback is missing" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_misarg">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect successCallback argument throws exception" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when successCallback is invalid" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P2" id="AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly with optional argument" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="AccelerationSensor_getAccelerationSensorData_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" element_type="method" element_name="getAccelerationSensorData" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface AccelerationSensor exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P3" id="AccelerationSensor_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AccelerationSensor" usage="true" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface SensorAccelerationData exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P3" id="SensorAccelerationData_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SensorAccelerationData" usage="true" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if x attribute of SensorAccelerationData exists, type is double and readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="SensorAccelerationData_x_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_x_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SensorAccelerationData" element_type="attribute" element_name="x" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if y attribute of SensorAccelerationData exists, type is double and readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="SensorAccelerationData_y_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_y_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SensorAccelerationData" element_type="attribute" element_name="y" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if z attribute of SensorAccelerationData exists, type is double and readonly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/System/Sensor" execution_type="auto" priority="P1" id="SensorAccelerationData_z_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_z_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SensorAccelerationData" element_type="attribute" element_name="z" specification="Sensor" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/sensor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
   </suite>
 </test_definition>
index a63a9feaee3cef149f13f5e351f52957baa78562..1cb13f1584f2895211ce67aaeb8ae4a244428bf2 100755 (executable)
         </description>
       </testcase>
     </set>
+    <set name="AccelerationSensor_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE_FULL</value>
+        </capability>
+        <capability name="http://tizen.org/feature/sensor.accelerometer"/>
+      </capabilities>
+      <testcase purpose="Check if AccelerationSensor is extendable" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_extend">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect errorCallback argument throws exception" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when errorCallback is invalid" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check exception in errorCallback of AccelerationSensor::getAccelerationSensorData() method" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invoked.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method exists" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_exist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() throws exception when successCallback is missing" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_misarg">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect successCallback argument throws exception" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when successCallback is invalid" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly with optional argument" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface AccelerationSensor exists, it should not" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface SensorAccelerationData exists, it should not." component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if x attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_x_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_x_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if y attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_y_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_y_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if z attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_z_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_z_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
     <!--<set name="Light_Sensor_wearable" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
         </description>
       </testcase>
     </set>
+    <set name="AccelerationSensor_wearable" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value>
+        </capability>
+        <capability name="http://tizen.org/feature/sensor.accelerometer"/>
+      </capabilities>
+      <testcase purpose="Check if AccelerationSensor is extendable" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_extend">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect errorCallback argument throws exception" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when errorCallback is invalid" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check exception in errorCallback of AccelerationSensor::getAccelerationSensorData() method" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invoked.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method exists" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_exist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() throws exception when successCallback is missing" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_misarg">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect successCallback argument throws exception" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when successCallback is invalid" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly with optional argument" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface AccelerationSensor exists, it should not" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface SensorAccelerationData exists, it should not." component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if x attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_x_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_x_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if y attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_y_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_y_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if z attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_z_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_z_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="AccelerationSensor_wearable" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value>
+        </capability>
+        <capability name="http://tizen.org/feature/sensor.accelerometer"/>
+      </capabilities>
+      <testcase purpose="Check if AccelerationSensor is extendable" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_extend">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect errorCallback argument throws exception" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when errorCallback is invalid" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check exception in errorCallback of AccelerationSensor::getAccelerationSensorData() method" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_errorCallback_invoked.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method exists" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_exist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() throws exception when successCallback is missing" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_misarg">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() with incorrect successCallback argument throws exception" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method throws exception when successCallback is invalid" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AccelerationSensor::getAccelerationSensorData() method works properly with optional argument" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_getAccelerationSensorData_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_getAccelerationSensorData_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface AccelerationSensor exists, it should not" component="TizenAPI/System/Sensor" execution_type="auto" id="AccelerationSensor_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/AccelerationSensor_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface SensorAccelerationData exists, it should not." component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_notexist">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if x attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_x_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_x_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if y attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_y_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_y_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if z attribute of SensorAccelerationData exists, type is double and readonly" onload_delay="30" component="TizenAPI/System/Sensor" execution_type="auto" id="SensorAccelerationData_z_attribute">
+        <description>
+          <test_script_entry>/opt/tct-sensor-tizen-tests/sensor/SensorAccelerationData_z_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
   </suite>
 </test_definition>