On 07/07/2014 17:25, gkee...@mozilla.com wrote:
We have no unit test framework for internal JS, does anyone have any 
interesting ideas on how to accomplish this with our existing testing 
frameworks?

Should I just leave unit testing functions in the JS file, so they can be run 
manually during future development?


I'm not sure what you mean by "internal" JS. We have xpcshell tests, in which you could load an arbitrary JS file if you wanted, and then run tests against the functions in that file. Or if it's a JSM, you could load that and use the result of Cu.import to do internal tests (as that will produce a BackstagePass which will allow you to interact with non-exported symbols from that JSM).

~ Gijs
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to