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

IOS:Regression-Console.log does not concatenate and log if it has multiple arguments with space

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 8.1.0
    • Fix Version/s: Release 8.1.0
    • Component/s: iOS
    • Environment:
    • Story Points:
      5
    • Sprint:
      2019 Sprint 16, 2019 Sprint 17

      Description

      Steps to Reproduce:
      1.Create a classic app
      2.Run on IOS
      Expected:
      should log movie size
      Actual:
      displays only the first argument

      notes:
      if using concatenation like "console.log(e.type + ' e.naturalSize ' + JSON.stringify(e.naturalSize))" then logging correctly.
      console.log is working fine on 8.0.2 GA and below.not working on 8.1.0

      App.js:

      const win = Ti.UI.createWindow({
          backgroundColor: '#fff'
      });
       
      const player = Ti.Media.createVideoPlayer({
          url: 'http://techslides.com/demos/sample-videos/small.mp4', // 560x320
          showsControls: false,
          autoplay: true,
          height: 200
      });
      win.add(player);
       
      function onNaturalSizeAvailable(e) {
          console.log(e.type, 'e.naturalSize', JSON.stringify(e.naturalSize));
          console.log('player.naturalSize', e.source.naturalSize);
       
      //comment out the above 2 lines and uncomment the below 2 lines
      //console.log(e.type + ' e.naturalSize ' + JSON.stringify(e.naturalSize));
        //  console.log('player.naturalSize ' + JSON.stringify(e.source.naturalSize));
      }
      player.addEventListener('naturalsizeavailable', onNaturalSizeAvailable);
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              kmahalingam Keerthi Mahalingam
              Reviewer:
              Christopher Williams
              Tester:
              Samir Mohammed
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code