//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== STEP Click Run button, and then tilt device
+//==== STEP Click Run button, and then pick up device
//==== EXPECT Pass should be shown in the page
//==== TEST_CRITERIA AE AT ARO
setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), watchID = null, listener, gestureType = "GESTURE_TILT";
+var t = async_test(document.title, {timeout: 90000}), watchID = null, listener, gestureType = "GESTURE_PICK_UP", isSupported;
t.step(function () {
add_result_callback(function () {
tizen.humanactivitymonitor.removeGestureRecognitionListener(watchID);
});
- listener = t.step_func(function (gestureData) {
- check_readonly(gestureData, "x", gestureData.x, "number", gestureData.x + 1);
- t.done();
- });
+ isSupported = tizen.humanactivitymonitor.isGestureSupported(gestureType);
+ if(isSupported){
+ listener = t.step_func(function (gestureData) {
+ check_readonly(gestureData, "x", gestureData.x, "number", gestureData.x + 1);
+ t.done();
+ });
- watchID = tizen.humanactivitymonitor.addGestureRecognitionListener(gestureType, listener);
+ watchID = tizen.humanactivitymonitor.addGestureRecognitionListener(gestureType, listener);
+ }else{
+ t.done();
+ }
});
</script>
</body>
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== STEP Click Run button, and then tilt device
+//==== STEP Click Run button, and then pick up device
//==== EXPECT Pass should be shown in the page
//==== TEST_CRITERIA AE AT ARO
setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), watchID = null, listener, gestureType = "GESTURE_TILT";
+var t = async_test(document.title, {timeout: 90000}), watchID = null, listener, gestureType = "GESTURE_PICK_UP";
t.step(function () {
add_result_callback(function () {
tizen.humanactivitymonitor.removeGestureRecognitionListener(watchID);
});
- listener = t.step_func(function (gestureData) {
- check_readonly(gestureData, "y", gestureData.y, "number", gestureData.y + 1);
- t.done();
- });
+ isSupported = tizen.humanactivitymonitor.isGestureSupported(gestureType);
+ if(isSupported){
+ listener = t.step_func(function (gestureData) {
+ check_readonly(gestureData, "y", gestureData.y, "number", gestureData.y + 1);
+ t.done();
+ });
- watchID = tizen.humanactivitymonitor.addGestureRecognitionListener(gestureType, listener);
+ watchID = tizen.humanactivitymonitor.addGestureRecognitionListener(gestureType, listener);
+ }else{
+ t.done();
+ }
});
</script>
</body>
assert_not_equals(gestureData , null, "Argument should not be null.");
check_readonly(gestureData, "type", gestureData.type, "string", gestureData.type + "1");
check_readonly(gestureData, "event", gestureData.event, "string", gestureData.event + "1");
- check_readonly(gestureData, "timestamp", gestureData.timestamp, "string", gestureData.timestamp + 1);
+ check_readonly(gestureData, "timestamp", gestureData.timestamp, "number", gestureData.timestamp + 1);
t.done();
});
conversionTable, errorCallback, exceptionName, i;
t.step(function () {
- conversionTable = getTypeConversionExceptions("functionObject", false);
+ conversionTable = getTypeConversionExceptions("functionObject", true);
for (i = 0; i < conversionTable.length; i++) {
errorCallback = conversionTable[i][0];
exceptionName = conversionTable[i][1];
t.step(function () {
listener = t.step_func(function (data) {
- returnedValue = tizen.humanactivitymonitor.removeGestureRecognitionListener(watchID);
- assert_type(returnedValue, undefined, "Return value is not undefined");
+ returnedValue = tizen.humanactivitymonitor.removeGestureRecognitionListener(watchID);
+ assert_type(returnedValue, "undefined", "Return value is not undefined");
t.done();
});
<description>
<steps>
<step order="1">
- <step_desc>Click Run button, and then tilt device</step_desc>
+ <step_desc>Click Run button, and then pick up device</step_desc>
<expected>Pass should be shown in the page</expected>
</step>
</steps>
<description>
<steps>
<step order="1">
- <step_desc>Click Run button, and then tilt device</step_desc>
+ <step_desc>Click Run button, and then pick up device</step_desc>
<expected>Pass should be shown in the page</expected>
</step>
</steps>
<description>
<steps>
<step order="1">
- <step_desc>Click Run button, and then tilt device</step_desc>
+ <step_desc>Click Run button, and then pick up device</step_desc>
<expected>Pass should be shown in the page</expected>
</step>
</steps>
<description>
<steps>
<step order="1">
- <step_desc>Click Run button, and then tilt device</step_desc>
+ <step_desc>Click Run button, and then pick up device</step_desc>
<expected>Pass should be shown in the page</expected>
</step>
</steps>