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

timob-7932: Android: drillbit failure for Android test suite #1628

Merged
merged 5 commits into from Mar 12, 2012

Conversation

pingwang2011
Copy link
Contributor

@joshthecoder
Copy link
Contributor

Review in progress...

@@ -28,6 +28,7 @@ describe("Ti.Android tests", {
Ti.API.debug(JSON.stringify(e));
valueOf(e.resultCode).shouldBe(Ti.Android.RESULT_OK);
}));
callback.passed();
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't correct since it will force the test to pass before the async callback runs.
You don't need to call callback.complete() when using this.async()..

@joshthecoder
Copy link
Contributor

With out this patch the test is failing for me because e.resultCode is undefined.
Looks like there was an issue running the activity and getting the result back.

Device: Xoom (Android 4.0.3)

@pingwang2011
Copy link
Contributor Author

Updated. Please review.

@joshthecoder
Copy link
Contributor

Tested on device (HTC Desire, Android 2.2). All tests passed, no crashes.
Tested on emulator (Android 2.2) and got two failures in android test suite (occurs on master, not a new regression).

@joshthecoder
Copy link
Contributor

Functional tested and code reviewed. Accepted

joshthecoder added a commit that referenced this pull request Mar 12, 2012
timob-7932: Android: drillbit failure for Android test suite
@joshthecoder joshthecoder merged commit 5804ba9 into tidev:master Mar 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants