{ "id": "103010", "key": "TIMOB-11339", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-25T17:59:03.000+0000", "created": "2012-10-10T00:07:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_tabgroup", "qe-and100112", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21854", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "63771", "key": "TIMOB-3139", "fields": { "summary": "Android: UI.Window - Window in tabgroup focus event does not fire", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "29491", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "115554", "key": "TIMOB-14130", "fields": { "summary": "Android: Window events, windows in the Tab and test", "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": "Medium", "id": "3" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-11T18:14:54.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": "Description:\r\nWhile testing TabGroup I noticed an unexpected output in a console. \r\n\r\nThis is a regression, does not occur on 2.1.3.\r\n\r\nSteps:\r\n1. Run the following code and check the console:\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tname: \"win 1\"\r\n});\r\nvar tab1 = Ti.UI.createTab({\r\n\tname: \"Tab 1\",\r\n\ttitle:'Tab 1',\r\n\twindow:win1\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tname: \"win 2\",\r\n\ttitle:'Tab 2',\r\n\tbackgroundColor:'#fff'\r\n});\r\nvar tab2 = Ti.UI.createTab({\r\n\tname: \"Tab 2\",\r\n\ttitle:'Tab 2',\r\n\twindow:win2\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\ntabGroup.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tabGroup focus event fired! - ' + e.source.name);\r\n});\r\ntab1.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tab1 focus event fired! - ' + e.source.name);\r\n});\r\ntab2.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> tab2 focus event fired! - ' + e.source.name);\r\n});\r\nwin1.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> win1 focus event fired! - ' + e.source.name);\r\n});\r\nwin2.addEventListener('focus', function(e){\r\n\tTi.API.info('-------------> win2 focus event fired! - ' + e.source.name);\r\n});\r\n\r\ntab1.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> tab1 blur event fired! - ' + e.source.name);\r\n});\r\ntab2.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> tab2 blur event fired! - ' + e.source.name);\r\n});\r\nwin1.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> win1 blur event fired! - ' + e.source.name);\r\n});\r\nwin2.addEventListener('blur', function(e){\r\n\tTi.API.info('**************> win2 blur event fired! - ' + e.source.name);\r\n});\r\n\r\ntabGroup.open();\r\n{code}\r\n\r\nExpected result:\r\nAfter step 1. The following appears in the console/logcat: \r\n{code}\r\n-------------> tab1 focus event fired! - Tab 1 \r\n-------------> tabGroup focus event fired! - Tab 1 \r\n-------------> win1 focus event fired! - win 1\r\n{code}\r\nAfter step 2. Should see something similar in the console/logcat: \r\n{code}\r\n**************> tab1 blur event fired! - Tab 1 \r\n**************> win1 blur event fired! - win 1 \r\n-------------> tab2 focus event fired! - Tab 2 \r\n-------------> tabGroup focus event fired! - Tab 2 \r\n-------------> win2 focus event fired! - win 2 \r\n**************> tab2 blur event fired! - Tab 2 \r\n**************> win2 blur event fired! - win 2 \r\n-------------> tab1 focus event fired! - Tab 1 \r\n-------------> tabGroup focus event fired! - Tab 1 \r\n-------------> win1 focus event fired! - win 1\r\n{code}\r\n\r\nActual result:\r\nAfter step 1:\r\n{code}\r\nI/TiAPI(14231): -------------> win1 focus event fired! - Tab 1\r\nI/TiAPI(14231): -------------> tab1 focus event fired! - Tab 1\r\nI/TiAPI(14231): -------------> tabGroup focus event fired! - Tab 1\r\n{code}\r\nor\r\n{code}\r\nI/TiAPI(12643): -------------> win1 focus event fired! - win 1\r\nI/TiAPI(12643): -------------> tab1 focus event fired! - win 1\r\nI/TiAPI(12643): -------------> tabGroup focus event fired! - win 1\r\n{code}\r\nAfter step 2:\r\n{code}\r\nI/TiAPI(14946): **************> win1 blur event fired! - Tab 1\r\nI/TiAPI(14946): **************> tab1 blur event fired! - Tab 1\r\nI/TiAPI(14946): -------------> win2 focus event fired! - Tab 2\r\nI/TiAPI(14946): -------------> tab2 focus event fired! - Tab 2\r\nI/TiAPI(14946): -------------> tabGroup focus event fired! - Tab 2\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TabGroup - Unexpected output in a console on Android", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nOS: Mac OS X Lion 10.7.4\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121009111437\r\nDevice: Samsung Galaxy III (4.0.4)", "comment": { "comments": [ { "id": "223161", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The ordering of focus/blur has been modified to: win -> tab -> tabGroup.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-11T20:43:00.000+0000", "updated": "2012-10-11T20:43:00.000+0000" }, { "id": "223346", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3.0.X PR: https://github.com/appcelerator/titanium_mobile/pull/3193\nMaster PR: https://github.com/appcelerator/titanium_mobile/pull/3160", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T00:20:12.000+0000", "updated": "2012-10-13T00:20:12.000+0000" }, { "id": "224044", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Verified and tested on:\r\nTitanium Studio, build: 3.0.0.201210151149\r\nTitanium SDK, builds: 3.0.0.v20121017100120; 3.1.0.v20121017102121\r\nDevice: Nexus 7 (4.1.1)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T20:33:55.000+0000", "updated": "2012-10-17T20:33:55.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }