[TIMOB-9667] TiAPI: Anvil: default values for Ti.UI.createButton().title and Ti.UI.createSearchBar().value should be empty string instead of undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-05-01T22:21:37.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | TiAPI |
Labels | anvil, api, linvalid, parity |
Reporter | Max Stepanov |
Assignee | Eric Merriman |
Created | 2012-06-20T14:48:08.000+0000 |
Updated | 2017-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
Closing ticket as "Won't Fix" as Anvil is no longer supported.