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-24665] Android: Fix constant value definitions #9031
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
@garymathews I saw your label |
@hansemannn I'm not sure, the reason it's a breaking change is due to this: var audioPlayer = Ti.Media.createAudioPlayer(...);
audioPlayer.STATE_BUFFERING // this will now be undefined
Ti.Media.AudioPlayer.STATE_BUFFERING // this should be used instead But |
Can we do both and deprecate the instance constant? I'm afraid any breaking change would need to wait until 7.0.0 :(. |
Can we also add unit tests in this PR to our test suite? I don't think we have any for Ti.Media.*, so adding tests that just verify these contents would be awesome. (To add the tests, drop in a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add unit tests to verify the constants live at the right level.
This would be a good place to crib some constant tests: https://github.com/appcelerator/titanium-mobile-mocha-suite/blob/1102d6e1d7a0da2bb41082b350a6f22d08f449fa/Resources/ti.geolocation.test.js
@sgtcoolguy Updated PR, added test cases. |
FR Passed. Ran the above code & the definitions does not return
Studio Ver: 4.9.0.201705302345 |
TEST CASE
undefined
JIRA Ticket