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-8943: BlackBerry: Add BlackBerry to drillbit scripts #46
TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts #46
Conversation
[Issues Fixed] (partial) TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts [Added] blackberry.js - note: there is some commented-out code that should be ignored for now [Changed] index.html, drillbit.js, drillbit.py, drillbit_sdk.py, drillbitTest.js, drillbitmodule.js - added BlackBerry counterparts drillbit.py - added the user's app data location to the search path [Tests] Test 1: Run drillbit 1) Run one of the following commands: drillbit\drillbit.py --platforms=android or drillbit\drillbit.py --platforms=blackberry or drillbit\drillbit.py --platforms=android,blackberry or drillbit\drillbit.py --platforms=blackberry,android 2) Verify the tests are shown 3) Click "run tests" 4) Verify the tests are run Note: the BlackBerry tests will not complete because the building step is not implemented yet
|
||
// TODO: the above needs to be implemented in blackberryndk.py. For now just fake it: | ||
result = "BLACKBERRY_NDK=C:\\bbndk-10.0.03"; | ||
|
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.
We have blackberry NDK detection in blackberryndk.py, so probably no need in this.
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.
The lines above were taken from the android version, but I put the TODO there to fix things in another patch.
Can run the tests, but for blackberry it seems hang on issuing make. Have you noticed such issue? |
As discussed, make doesn't run for blackberry yet for these tests. |
Approved |
Addressed comments. |
|
||
BlackBerrySimulator.prototype.fillTiAppData = function(data) { | ||
if(data.androidRuntime === undefined) { | ||
data.androidRuntime = "none"; |
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.
android? really?
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.
yes, really. see iphone.js
TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts [Issues Fixed] (partial) TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts [Added] blackberry.js note: there is some commented-out code that should be ignored for now [Changed] index.html, drillbit.js, drillbit.py, drillbit_sdk.py, drillbitTest.js, drillbitmodule.js added BlackBerry counterparts drillbit.py added the user's app data location to the search path [Tests] Precondition: need to build mobile sdk using scons Test 1: Run drillbit 1) Run one of the following commands: drillbit\drillbit.py --platforms=android or drillbit\drillbit.py --platforms=blackberry or drillbit\drillbit.py --platforms=android,blackberry or drillbit\drillbit.py --platforms=blackberry,android 2) Verify the tests are shown 3) Click "run tests" 4) Verify the tests are run Note: the BlackBerry tests will not complete because the building step is not implemented yet
Reviewers: Alex, Harut
Note: you need to install Titanium Desktop 1.2. Links can be found under the Running Drillbit section of http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/Writing_Unit_Tests_with_Drillbit
[Issues Fixed]
(partial) TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts
[Added]
blackberry.js
[Changed]
index.html, drillbit.js, drillbit.py, drillbit_sdk.py, drillbitTest.js, drillbitmodule.js
drillbit.py
[Tests]
Precondition: need to build mobile sdk using scons
Test 1: Run drillbit
drillbit\drillbit.py --platforms=android
or
drillbit\drillbit.py --platforms=blackberry
or
drillbit\drillbit.py --platforms=android,blackberry
or
drillbit\drillbit.py --platforms=blackberry,android
Note: the BlackBerry tests will not complete because the building step is not implemented yet