{ "id": "63010", "key": "TIMOB-2378", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "11357", "description": "Mobile 1.8.0 M04", "name": "Sprint 2011-25", "archived": true, "released": true, "releaseDate": "2011-06-27" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T13:38:48.000+0000", "created": "2011-04-15T03:18:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "regression" ], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-11-05T13:38:48.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

1.5.0.fb4b340. G2 (2.2) 2.1 emulator. g1 (1.6)

\r\n

1.Base UI > Alert
\r\n2.Tap Basic Alert button
\r\n3.tap back button
\r\n4.read values shown

\r\n

results: -268435457. if you then test a nother one of the\r\nalerts, then try this one again, you'll get a value of \"1\"

\r\n

previously (1.4.2) no value was returned here.

{html}", "attachment": [], "flagged": false, "summary": "Android: alert dialog - basic alert - returns unexpected values when dismissing ", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "157345", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "This behavior is actually proper, or at worst \"undefined\" (and definitely looks odd.)\r\n\r\nAndroid basic alerts have no button (unlike iOS, which needs the OK button to get rid of the alert). Therefore when the event occurs, the selected index is undefined (and that weird huge negative number, which is actually {{-1 &= ~BUTTON_MASK}} . \r\n\r\nThe action of backing out of the Android basic alert (which has no buttons) is considered a \"cancel\". And the other tests below the basic one explicitly set the cancel value to 1: {{a.cancel = 1;}}. The same instance of the alert dialog is re-used over and over for these tests, so the next time the top test (the basic alert) is called, the value for cancelation will be 1 (because those other tests set it to that.) Thus the 1.\r\n\r\nIt also doesn't make sense (for Android) that the alert message is \"One Button\", since there is no button.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-06-21T17:40:03.000+0000", "updated": "2011-06-21T17:40:03.000+0000" }, { "id": "157538", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reviewed and functional test passed.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-22T10:12:25.000+0000", "updated": "2011-06-22T10:12:25.000+0000" }, { "id": "157715", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "merged to 1_7_X", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-23T18:12:46.000+0000", "updated": "2011-06-23T18:12:46.000+0000" }, { "id": "159070", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As noted, the results are expected.\n\nPassed as expected on Nexus One running 2.2.2, Android Emulator running 2.3.3, Galaxy Tab running 2.2.1, and Xoom tablet running 3.1. System used: OSX 10.6.8, TiStudio 1.0.1.201106171427.\n\nPassed on both SDK 1.7.2.v20110707155439:\nversion=1.7.2\ntimestamp=07/07/11 15:54\ngithash=3d44999...\nand SDK 1.8.0.v20110708082651\nversion=1.8.0\ntimestamp=07/08/11 08:26\ngithash=3e25122...", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-08T14:58:32.000+0000", "updated": "2011-07-08T14:58:32.000+0000" }, { "id": "171602", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixing labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T13:38:33.000+0000", "updated": "2011-11-05T13:38:33.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }