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

Android: Ti.userAgent shouldn't be read-only

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Story Points:
      3
    • Sprint:
      2016 Sprint 19 SDK

      Description

      According to our docs, Ti.userAgent should be a property we can overwrite and should have a setter:
      http://docs.appcelerator.com/platform/latest/#!/api/Titanium-property-userAgent

      On Android that is not the case.

      it('userAgent', function () {
      		should(Ti.userAgent).be.a.String;
       
      		var save = Ti.userAgent;
      		Ti.userAgent = 'Titanium_Mocha_Test';
      		should(Ti.userAgent).be.eql('Titanium_Mocha_Test');
      		Ti.userAgent = save;
      		should(Ti.userAgent).be.eql(save);
      	});
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                cwilliams Christopher Williams
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration