{ "id": "93567", "key": "TIMOB-9667", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-05-01T22:21:37.000+0000", "created": "2012-06-20T14:48:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "anvil", "api", "linvalid", "parity" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-22T22:14:31.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Test cases:\r\n1. Anvil: start --suite=ui_controls --test=textControlsTextValueInitialValue\r\n2. Test app:\r\n{code}\r\nvar f = Ti.UI.createButton();\r\nTi.API.info(\"Button:title=<\"+f.title+\">\");\r\nTi.API.info(\"Button:title is empty = \"+(f.title===''));\r\n\r\nvar f = Ti.UI.createSearchBar();\r\nTi.API.info(\"SearchBar:value=<\"+f.value+\">\");\r\nTi.API.info(\"SearchBar:value is empty = \"+(f.value===''));\r\n{code}\r\n\r\nExpected results:\r\n{code}\r\n[INFO] Button:title=<>\r\n[INFO] Button:title is empty = true\r\n[INFO] SearchBar:value=<>\r\n[INFO] SearchBar:value is empty = true\r\n{code}\r\n\r\nActual results:\r\n{code}\r\n[INFO] Button:title=\r\n[INFO] Button:title is empty = false\r\n[INFO] SearchBar:value=\r\n[INFO] SearchBar:value is empty = false\r\n{code}", "attachment": [], "flagged": false, "summary": "TiAPI: Anvil: default values for Ti.UI.createButton().title and Ti.UI.createSearchBar().value should be empty string instead of undefined", "creator": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS", "comment": { "comments": [ { "id": "418467", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\" as Anvil is no longer supported.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-01T22:21:37.000+0000", "updated": "2017-05-01T22:21:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }