Re: Is it time for mochitest-chrome on Android and B2G

2014-06-20 Thread Gijs Kruitbosch
Yeah, this caught me out yesterday. xpcshell tests on Android have, for instance, a pre-existing default search engine, whereas xpcshell tests running on desktop do not. It would be nice if this were documented on MDN. ~ Gijs On 20/06/2014 02:24, Mark Finkle wrote: Fennec/Android does have

Re: Is it time for mochitest-chrome on Android and B2G

2014-06-19 Thread Mark Finkle
Fennec/Android does have the ability to run xpcshell-like tests. These tests are JS scripts loaded into a framework that simulates the xpcshell system. Technically it's not xpcshell though. The JS script is loaded into tab of the Fennec browser. If the JS script knows this, it can create a

Re: Is it time for mochitest-chrome on Android and B2G

2014-06-18 Thread Panos Astithas
Support for mochitest-chrome on mobile is sorely needed in devtools. It would increase our test coverage there by at least an order of magnitude. Panos On Wed, Jun 18, 2014 at 2:48 AM, Bobby Holley bobbyhol...@gmail.com wrote: I can't comment on the importance of the a-team's other

Re: Is it time for mochitest-chrome on Android and B2G

2014-06-18 Thread jmaher
Could you give some examples of what tests we could run on mobile in chrome? ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: Is it time for mochitest-chrome on Android and B2G

2014-06-18 Thread Matthew N.
On 6/17/14 4:32 PM, Jonathan Griffin wrote: Many of those tests don't apply to Android or B2G, and for those that theoretically do, many of them won't work because they rely on XUL files which aren't supported in B2G, and may not be in Android (not sure on that point). I'm told Android uses

Is it time for mochitest-chrome on Android and B2G

2014-06-17 Thread Jonathan Griffin
Periodically, we field a request to add support for mochitest-chrome to Android and B2G. To date, we've avoided this by pointing out ways that mochitest-plain can be used for the same use case, which usually involves SpecialPowers. We have a new request for this, in the context of

Re: Is it time for mochitest-chrome on Android and B2G

2014-06-17 Thread Bobby Holley
I can't comment on the importance of the a-team's other priorities, or the importance of running the tests in consideration on Android/B2G. However, as the author of SpecialPowers.wrap, I can say that using it for highly-involved chrome interaction should be considered Extremely Harmful. These