Project: appceleratorstudio
Issue TISTUD-6903: iOS: Console logs are not in an order as we instructed in app.js file for iOS Simulators
Console log are not in the same order as the code is in app.js file when app is launched iOS simulators. (!) It's a regression since console log are in expected order in titanium 3.3.0 GA release h5. Steps to Reproduce 1. Create a project using following code in app.js file. {code} Titanium.UI.setBackgroundColor('#000'); var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); alert('SESSION ID: ' + Ti.App.sessionId); Ti.API.error('SESSION ID: ' + Ti.App.sessionId); Ti.API.error('ERROR => Ti.API.error'); Ti.API.log('ERROR', 'ERROR => Ti.API.log'); Ti.API.warn('WARN => Ti.API.warn'); Ti.API.log('WARN', 'WARN => Ti.API.log'); Ti.API.info('INFO => Ti.API.info'); Ti.API.log('INFO', 'INFO => Ti.API.log'); Ti.API.debug('DEBUG => Ti.API.debug'); Ti.API.log('DEBUG', 'DEBUG => Ti.API.log'); Ti.API.trace('TRACE => Ti.API.trace'); Ti.API.log('TRACE', 'TRACE => Ti.API.log'); Ti.API.log('FREEFORM', 'FREEFORM => Ti.API.log'); win1.open(); {code} 2. Run the project on iOS simulator 3. Observe the console log. h5. Actual Result Console Logs are in not in the same order {code} [ERROR] : SESSION ID: AA0178AD-CE15-46BC-8561-F1B76FD7B6E9 [ERROR] : ERROR => Ti.API.error [WARN] : WARN => Ti.API.warn [ERROR] : ERROR => Ti.API.log [DEBUG] : DEBUG => Ti.API.debug [DEBUG] : DEBUG => Ti.API.log [WARN] : WARN => Ti.API.log [INFO] : INFO => Ti.API.info [INFO] : INFO => Ti.API.log [TRACE] : TRACE => Ti.API.trace [TRACE] : TRACE => Ti.API.log [TRACE] : [FREEFORM] FREEFORM => Ti.API.log {code} h5. Expected Result Console Log should be in the same order as we write in app.js file *Note:* For Galaxy S5 (4.4.2), Android Emulator (4.3) and iPhone 5S (iOS 8.0 beta5), Console logs are in the same order.
Story points: 8