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

Android: Ti.UI.Switch should default to false but is undefined

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.0.0
    • Component/s: Android
    • Labels:
    • Story Points:
      2
    • Sprint:
      2016 Sprint 20 SDK

      Description

      Jenkins PR builder is failing due to 1 unit test. Basically UI.Switch default value should be false, but is currently undefined. This is the mocha test:

      		it('defaultValue', function() {
      	 		var switch_ctrl = Ti.UI.createSwitch();
      	 		should(switch_ctrl.value).be.eql(false);
      	 		switch_ctrl.value = true;
      	 		should(switch_ctrl.value).be.eql(true);
      	 	});
      

      You can refer to this ticket for a similar fix.
      https://jira.appcelerator.org/browse/TIMOB-23499

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmerzadyan-OLD Farzad Merzadyan (Inactive)
                Reporter:
                cng Chee Kiat Ng (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code