<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"/>
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
</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>
</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>