5944bb7a2b939c3188b47e5554d2c7e6738c7d6f
[test/tct/web/api.git] /
1 <!DOCTYPE html>\r
2 <!--\r
3 Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
4 \r
5 Licensed under the Apache License, Version 2.0 (the License);\r
6 you may not use this file except in compliance with the License.\r
7 You may obtain a copy of the License at\r
8 \r
9     http://www.apache.org/licenses/LICENSE-2.0\r
10 \r
11 Unless required by applicable law or agreed to in writing, software\r
12 distributed under the License is distributed on an "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 See the License for the specific language governing permissions and\r
15 limitations under the License.\r
16 \r
17 Authors:\r
18         Ran Wang <ran22.wang@samsung.com>\r
19 \r
20 -->\r
21 <html>\r
22 <head>\r
23 <title>HumanActivityGPSInfo_errorRange_attribute</title>\r
24 <meta charset="utf-8"/>\r
25 <script src="support/unitcommon.js"></script>\r
26 <script src="support/humanactivitymonitor_common.js"></script>\r
27 </head>\r
28 <body>\r
29 <div id="log"></div>\r
30 <script>\r
31 //==== TEST: HumanActivityGPSInfo_errorRange_attribute\r
32 //==== LABEL Check if HumanActivityGPSInfo::errorRange exists, has type long, and is readonly\r
33 //==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:HumanActivityGPSInfo:errorRange A\r
34 //==== SPEC_URL TBD\r
35 //==== PRIORITY P1\r
36 //==== ONLOAD_DELAY 9\r
37 //==== TEST_CRITERIA AE AT ARO\r
38 \r
39 setup({timeout: 9000});\r
40 \r
41 var t = async_test(document.title, {timeout: 9000}), getHumanActivityDataSuccess, getHumanActivityDataError, humanActivityType = "GPS";\r
42 \r
43 t.step(function () {\r
44     add_result_callback(function () {\r
45         tizen.humanactivitymonitor.stop(humanActivityType);\r
46     });\r
47 \r
48     getHumanActivityDataError = t.step_func(function (error) {\r
49         assert_unreached("getHumanActivityDataError is called" + error.name);\r
50     });\r
51 \r
52     getHumanActivityDataSuccess = t.step_func(function (gpsInfo) {\r
53         check_readonly(gpsInfo, "errorRange", gpsInfo.errorRange, "long", gpsInfo.errorRange + 10);\r
54         t.done();\r
55     });\r
56 \r
57     tizen.humanactivitymonitor.start(humanActivityType);\r
58     tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
59 });\r
60 \r
61 </script>\r
62 </body>\r
63 </html>