Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): console.log does not log properly if it has multiple arguments #11125

Merged
merged 2 commits into from
Aug 12, 2019

Conversation

vijaysingh-axway
Copy link
Contributor

@vijaysingh-axway vijaysingh-axway added this to the 8.1.1 milestone Aug 7, 2019
@build build requested a review from a team August 7, 2019 20:52
@build
Copy link
Contributor

build commented Aug 7, 2019

Fails
🚫 Tests have failed, see below for more information.
Messages
📖

💾 Here's the generated SDK zipfile.

📖 ❌ 2 tests have failed There are 2 tests failing and 470 skipped out of 3728 total tests.

Tests:

ClassnameNameTimeError
android.emulator.Titanium.UI.Window.orientationModes LANDSCAPE_LEFT0.243
Error: expected 1 to equal 3
at Assertion.fail (/node_modules/should/cjs/should.js:275:17)
      at Assertion.value (/node_modules/should/cjs/should.js:356:19)
      at Window.<anonymous> (/ti.ui.window.test.js:85:34)
      at Window.value (ti:/events.js:50:21)
      at Window.value (ti:/events.js:102:19)
ios.Titanium.Database#executeAllAsync() does not allow DB to be GC'd60.004
Error: timeout of 60000ms exceeded
file:///Users/build/Library/Developer/CoreSimulator/Devices/60D909FD-31E6-42C0-959A-8B0B37F7FF4E/data/Containers/Bundle/Application/B86C2237-C932-4745-A4D9-4164C76C3F84/mocha.app/ti-mocha.js:4290:32

Generated by 🚫 dangerJS against 5a8e635

@@ -14,6 +14,9 @@ JSExportAs(timeLog,
-(void)timeLog
: (id)args withData
: (NSArray *)logData);
JSExportAs(log,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is actually required as the log method is exported by the APIModule parent class...

Copy link
Contributor

@sgtcoolguy sgtcoolguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ssjsamir ssjsamir self-requested a review August 12, 2019 16:12
Copy link
Contributor

@ssjsamir ssjsamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR Passed: console.log now logs properly if it has multiple arguments.

Tested with the following test case:

const win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
const button = Ti.UI.createButton({
title: 'Log'
});
 
button.addEventListener('click', function(e){
console.log(1, ' test', true);
});
 
win.add(button);
win.open();

Test Environment
MacOS Mojave version 10.14.4
Xcode 10.3
Node.js ^8.12.0
iPhone 8 (13).
"NPM":"4.2.13","CLI":"7.0.11

@sgtcoolguy sgtcoolguy merged commit 84c6734 into tidev:8_1_X Aug 12, 2019
rlustemberg added a commit to inzdr/titanium_mobile that referenced this pull request Aug 21, 2019
* 8_1_X: (46 commits)
  fix(ios): exclude all frameworks from optimizing files step (8_1_X) (tidev#10996)
  fix(android): fix asset encryption on windows 32bit java (tidev#11155)
  fix(ios): add script message handler for local files only (tidev#11086)
  fix(android): improve merge of <uses-feature/> elements (tidev#11111)
  fix(android): splash open animation sometimes stutters on cold start (tidev#11140)
  fix(android): fix dialog without selectedIndex reusage
  fix(android): resuming with intent "FLAG_ACTIVITY_MULTIPLE_TASK" can hang the app (tidev#11081)
  fix(android): regression where closing root window from child window causes app exit issues as of 8.0.1 (tidev#11093)
  fix(android): fix reusing a dialog with a new "parent" window (tidev#11096)
  chore(release): bump version
  fix(ios): console.log does not log properly if it has multiple arguments (tidev#11125)
  fix(android): update titanium_prep windows binaries
  chore(android)(8_1_X): update titanium_prep binaries (tidev#11100)
  fix(android)(8_1_X): ListView's SearchBar/SearchView wrongly overlaps rows as of 8.0.1 (tidev#11105)
  chore(android): update aps-analytics (tidev#11101)
  fix(ios): fix crashes in calendar upon giving permission (tidev#11078)
  fix(ios,android)(8_1_X): implement exception signal handler (tidev#11077)
  fix(cli): add deprecation notice for node < 10.13 (tidev#11063)
  test(db): bump up timeout
  test(db): drop long-running query count to 5000 rows
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants