{ "id": "107475", "key": "TIMOB-12233", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15114", "description": "2013 Sprint 09 BB", "name": "2013 Sprint 09 BB", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "id": "15107", "description": "2013 Sprint 09", "name": "2013 Sprint 09", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-06T05:45:41.000+0000", "created": "2013-01-07T13:17:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "24733", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "89610", "key": "TIMOB-8571", "fields": { "summary": "BlackBerry: Implement Accelerometer module", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T07:52:22.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "h3. Acceptance Test\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical'\r\n});\r\n\r\nvar enableAccelerometer = Ti.UI.createButton({\r\n title: 'Toggle Accelerometer'\r\n});\r\nwin.add(enableAccelerometer);\r\n\r\nvar labels = ['x', 'y', 'z'].map(function(coord) {\r\n var label = Ti.UI.createLabel({text: coord + ': N/A'});\r\n win.add(label);\r\n return label;\r\n});\r\n\r\nfunction onUpdate(e) {\r\n labels[0].text = e.x;\r\n labels[1].text = e.y;\r\n labels[2].text = e.z;\r\n}\r\n\r\nvar accelerometerEnabled = false;\r\nenableAccelerometer.addEventListener('click', function() {\r\n accelerometerEnabled ? Ti.Accelerometer.removeEventListener('update', onUpdate)\r\n : Ti.Accelerometer.addEventListener('update', onUpdate);\r\n accelerometerEnabled = !accelerometerEnabled;\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n# Try moving the device around. No updates should be displayed.\r\n# Click \"Toggle Accelerometer\". Move device and you should now see updates (x, y, z values).\r\n# Click the toggle button again and the updates should stop. Repeat and verify.\r\n", "attachment": [], "flagged": false, "summary": "BlackBerry: Implement important Titanium.Accelerometer functionality", "creator": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "249764", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ready for code review and testing.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-01T19:58:27.000+0000", "updated": "2013-05-01T19:58:27.000+0000" }, { "id": "410239", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T07:52:22.000+0000", "updated": "2017-03-09T07:52:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }