Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-9667

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: None
    • Component/s: TiAPI
    • Environment:

      iOS

      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
      

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              mstepanov Max Stepanov
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-13811
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration