Re: Testing MobileSpecTest

2013-02-26 Thread Michal Mocny
Bump. Is there any opposition to me landing this? It should simplify testingmaking changes to mobile-spec tests on dev work in a way that doesn't hurt normal git workflow. -Michal On Mon, Feb 25, 2013 at 4:00 PM, Michal Mocny mmo...@chromium.org wrote: Actually, got this working, pushed a

Re: Testing MobileSpecTest

2013-02-26 Thread Michael Brooks
Cool, since I see a conditional for Android and iOS, it would be nice to have WP7 or BB test this and ensure it works there as well. On Tue, Feb 26, 2013 at 11:53 AM, Michal Mocny mmo...@chromium.org wrote: Thanks for heads up. -Michal On Tue, Feb 26, 2013 at 2:40 PM, Michael Brooks

Re: Testing MobileSpecTest

2013-02-26 Thread Filip Maj
I copy over the built cordova.xxx.js file to my project www/ folder as cordova.js and overwrite the loader script that is in mobile-spec currently under cordova.js. Doesn't that solve this problem? I.e. $ cd cordova-android $ ./bin/create ../tmp $ cd ../cordova-js $ jake $

Re: Testing MobileSpecTest

2013-02-26 Thread Tim Kim
Ya I do pretty much that same thing that Fil does but for BlackBerry. I'm not sure where the speed up would be for the BlackBerry side. On 26 February 2013 13:18, Filip Maj f...@adobe.com wrote: I copy over the built cordova.xxx.js file to my project www/ folder as cordova.js and overwrite

Re: Testing MobileSpecTest

2013-02-26 Thread Jesse
Yes, we all have our own processes, and Michal has his. I don't think there is value in dictating how people should do it. On Tue, Feb 26, 2013 at 1:50 PM, Tim Kim timki...@gmail.com wrote: Ya I do pretty much that same thing that Fil does but for BlackBerry. I'm not sure where the speed up

Re: Testing MobileSpecTest

2013-02-26 Thread Michal Mocny
So I am trying to simplify making changes to mobile-spec itself. With your workflow, its easy enough to run mobile-spec after making changes to js/platform, but if you make changes to mobile-spec which you want to push, you have to first clean up your repo. Especially annoying when I want to run

Re: Testing MobileSpecTest

2013-02-26 Thread Filip Maj
Its true, boils down to adding another script tag to cordova.android.js or cordova.ios.js. *shrugs* On 2/26/13 6:49 PM, Michal Mocny mmo...@chromium.org wrote: So I am trying to simplify making changes to mobile-spec itself. With your workflow, its easy enough to run mobile-spec after making

Testing MobileSpecTest

2013-02-25 Thread Michal Mocny
How do other devs test mobile spec locally? Specifically, how do you set up your repo to test with your working cordova.js version, in a way that you can make changes to mobile-spec tests, push local changes merge changes coming from remote. I'm always overriding/clearing/overriding the default

Re: Testing MobileSpecTest

2013-02-25 Thread Jesse MacFadyen
For every version, I do the following for WP7 and WP8 : - create a new project from the latest template - remove the dll and link to the repo project directly - copy over mobile-spec - modify cordova.js to include cordova.windowsphone.js - add visual studio link to cordova-js output pkg version

Re: Testing MobileSpecTest

2013-02-25 Thread Michal Mocny
Yeah I'm trying to prototype what I proposed and I cannot find a way to test for file existence in a sync way, and the mobile spec tests don't deal well with having cordova.js injected after page load. This is solvable but I'll shelve it until I get more feedback/interest expressed. -Michal On

Re: Testing MobileSpecTest

2013-02-25 Thread Michal Mocny
Actually, got this working, pushed a remote branch for feedback: Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/9ec39e93 We can add the other platforms, of course, and on windows you can hard link the file, I think? -Michal On Mon, Feb 25, 2013 at 2:59 PM, Michal