<div id="log"></div>
<script>
//==== PRIORITY P1
- test(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");
- });
- }
- }
+var t = async_test(document.title), GestureRecognitionCallback;
+
+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.addGestureRecognitionListener("GESTURE_WRIST_UP", GestureRecognitionCallback);
+ });
}
- });
+ }
+ }
+ t.done();
+});
</script>
</body>
</html>