Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9667] TiAPI: Anvil: default values for Ti.UI.createButton().title and Ti.UI.createSearchBar().value should be empty string instead of undefined

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-01T22:21:37.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsTiAPI
Labelsanvil, api, linvalid, parity
ReporterMax Stepanov
AssigneeEric Merriman
Created2012-06-20T14:48:08.000+0000
Updated2017-05-22T22:14:31.000+0000

Description

Test cases: 1. Anvil: start --suite=ui_controls --test=textControlsTextValueInitialValue 2. Test app:
var f = Ti.UI.createButton();
Ti.API.info("Button:title=<"+f.title+">");
Ti.API.info("Button:title is empty = "+(f.title===''));

var f = Ti.UI.createSearchBar();
Ti.API.info("SearchBar:value=<"+f.value+">");
Ti.API.info("SearchBar:value is empty = "+(f.value===''));
Expected results:
[INFO] Button:title=<>
[INFO] Button:title is empty = true
[INFO] SearchBar:value=<>
[INFO] SearchBar:value is empty = true
Actual results:
[INFO] Button:title=<undefined>
[INFO] Button:title is empty = false
[INFO] SearchBar:value=<undefined>
[INFO] SearchBar:value is empty = false

Comments

  1. Lee Morris 2017-05-01

    Closing ticket as "Won't Fix" as Anvil is no longer supported.

JSON Source