From: chen89.chen Date: Fri, 8 Oct 2021 13:38:37 +0000 (+0800) Subject: Set acceleration values to non-zero before tests X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69de84f39e3c090db3a6d24d827f0fb339915d86;p=test%2Ftct%2Fweb%2Fapi.git Set acceleration values to non-zero before tests Change-Id: I1c089b1578d09800529c0bbcc765c01fb104d260 Signed-off-by: chen89.chen --- diff --git a/common/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html b/common/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html index c36ea5b40..8b57210c7 100755 --- a/common/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html +++ b/common/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html @@ -38,14 +38,14 @@ var t = async_test(document.title, {timeout: 5000}), deviceReady, onSuccess, onE t.step(function () { onSuccess = t.step_func(function (a) { - assert_type(a.x, "number", "invalid type of Acceleraton X"); - assert_not_equals(a.x, 0, "invalid value of Acceleraton X"); - assert_type(a.y, "number", "invalid type of Acceleraton Y"); - assert_not_equals(a.y, 0, "invalid value of Acceleraton Y"); - assert_type(a.z, "number", "invalid type of Acceleraton Z"); - assert_not_equals(a.z, 0, "invalid value of Acceleraton Z"); - assert_type(a.timestamp, "number", "invalid type of Acceleraton Timestamp"); - assert_not_equals(a.timestamp, 0, "invalid value of Acceleraton Timestamp"); + assert_type(a.x, "number", "invalid type of Acceleration X"); + assert_not_equals(a.x, 0, "invalid value of Acceleration X"); + assert_type(a.y, "number", "invalid type of Acceleration Y"); + assert_not_equals(a.y, 0, "invalid value of Acceleration Y"); + assert_type(a.z, "number", "invalid type of Acceleration Z"); + assert_not_equals(a.z, 0, "invalid value of Acceleration Z"); + assert_type(a.timestamp, "number", "invalid type of Acceleration Timestamp"); + assert_not_equals(a.timestamp, 0, "invalid value of Acceleration Timestamp"); t.done(); }); diff --git a/common/tct-devicemotion-cordova-tests/tests.full.xml b/common/tct-devicemotion-cordova-tests/tests.full.xml index 08e6c0dc8..fd8ec260b 100755 --- a/common/tct-devicemotion-cordova-tests/tests.full.xml +++ b/common/tct-devicemotion-cordova-tests/tests.full.xml @@ -17,8 +17,16 @@ - + + HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X, Y, Z to nonzero value + Wearable Circle EMULATOR : Emulator Control Panel -> Sensor -> Acceleration to set X, Y, Z to nonzero value. + + + press [Run] button in the test case. + test case is passed. + + /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html @@ -41,8 +49,16 @@ - + + HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X to nonzero value + Wearable Circle EMULATOR : Emulator Control Panel -> Sensor -> Acceleration to set X to nonzero value. + + + press [Run] button in the test case. + test case is passed. + + /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_getCurrentAcceleration.html @@ -119,8 +135,16 @@ - + + HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X to nonzero value + Wearable Circle EMULATOR : Emulator Control Panel -> Sensor-> Acceleration to set X to nonzero value. + + + press [Run] button in the test case. + test case is passed. + + /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_watchAcceleration_with_accelerometerOptions.html diff --git a/common/tct-devicemotion-cordova-tests/tests.xml b/common/tct-devicemotion-cordova-tests/tests.xml index 75c4f5687..3d73b383a 100755 --- a/common/tct-devicemotion-cordova-tests/tests.xml +++ b/common/tct-devicemotion-cordova-tests/tests.xml @@ -15,8 +15,16 @@ /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_notexist.html - + + HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X, Y, Z to nonzero value + Wearable Circle EMULATOR : Emulator Control Panel -> Sensor -> Acceleration to set X, Y, Z to nonzero value. + + + press [Run] button in the test case. + test case is passed. + + /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html @@ -35,8 +43,16 @@ /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_extend.html - + + HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X to nonzero value + Wearable Circle EMULATOR : Emulator Control Panel -> Sensor -> Acceleration to set X to nonzero value. + + + press [Run] button in the test case. + test case is passed. + + /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_getCurrentAcceleration.html @@ -101,8 +117,16 @@ /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_watchAcceleration_misarg.html - + + HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X to nonzero value + Wearable Circle EMULATOR : Emulator Control Panel -> Sensor-> Acceleration to set X to nonzero value. + + + press [Run] button in the test case. + test case is passed. + + /opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_watchAcceleration_with_accelerometerOptions.html