<div id="log"></div>
<script>
//==== PRIORITY P1
+var t = async_test(document.title), GestureRecognitionCallback;
- test(function () {
+t.step(function () {
+ GestureRecognitionCallback = t.step_func(function () {
+ });
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.wrist_up") === false) {
assert_throws({
name: "NotSupportedError"
}, function () {
- tizen.humanactivitymonitor.start("WRIST_UP");
+ tizen.humanactivitymonitor.addGestureRecognitionListener("GESTURE_WRIST_UP", GestureRecognitionCallback);
});
}
- });
-
+ }
+ }
+ t.done();
+});
</script>
</body>
</html>
\ No newline at end of file
<div id="log"></div>
<script>
//==== PRIORITY P1
+var t = async_test(document.title), GestureRecognitionCallback;
- test(function () {
+t.step(function () {
+ GestureRecognitionCallback = t.step_func(function () {
+ });
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.wrist_up") === false) {
assert_throws({
name: "NotSupportedError"
}, function () {
- tizen.humanactivitymonitor.start("WRIST_UP");
+ tizen.humanactivitymonitor.addGestureRecognitionListener("GESTURE_WRIST_UP", GestureRecognitionCallback);
});
}
- });
-
+ }
+ }
+ t.done();
+});
</script>
</body>
</html>
\ No newline at end of file