Is it time for mochitest-chrome on Android and B2G

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 requestAutocomplete 
(https://bugzilla.mozilla.org/show_bug.cgi?id=1021060#c16).  The tests 
for this, as well as some other features we've seen requests for, need 
to be able to execute some setup code with chrome privileges, and 
SpecialPowers isn't always flexible enough.  As bholley points out, 
SpecialPowers is a "best effort" and doesn't necessarily support 
everything a test may wish to do.

Has the time come to bite the bullet and add mochitest-chrome support to 
Android and B2G?  This would be a non-trivial effort, and would need to 
be done separately for Android and B2G.  Adding support for this would 
come at the expense of something else, possibly work related to Android 
4.4 tests on emulators, work integrating our harnesses with structured 
logging, and/or work on reducing our intermittent test failures on B2G.  
These tasks are important and I wouldn't want to delay them without a 
very clear need.  Does that exist here?

Note that we are talking only about enabling harness support for 
mochitest-chrome in Android and B2G in order to provide a framework for 
tests that would otherwise be difficult to write.  We are not talking 
about taking the existing set of mochitest-chrome tests and getting them 
to work in Android and B2G.  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).

For more context about the history of mochitest-chrome on B2G, see 
https://bugzilla.mozilla.org/show_bug.cgi?id=797164

Jonathan

0
Jonathan
6/17/2014 11:32:25 PM
mozilla.dev.platform 6647 articles. 0 followers. Post Follow

0 Replies
364 Views

Similar Articles

[PageSpeed] 6

Reply:

Similar Artilces:

Is dev-platform for platform users or platform developers?
So since dev-tech-xpcom closed, there's been an awful lot of traffic on dev-platform from platform users. I don't really have time to read this, and it probably means I'll be paying less attention to the platform developer traffic on dev-platform (if any at all; I'd long since unsubscribed to dev-tech-xpcom until told to resubscribe to follow the XPCOM memory management discussion). Does this discussion belong on dev-platform, or should it be redirected elsewhere? -David -- L. David Baron http://dbaron.org/ Mozilla Corporation ...

Merging dev-gaia and dev-b2g into dev-fxos
--001a113ce93ebce35d051e4c0c73 Content-Type: text/plain; charset=UTF-8 Hello people of Firefox OS, After a discussion we have decided that the distinction between dev-gaia and dev-b2g mailing lists is not enough to warrant maintaining two lists. So we are deprecating both in favor of dev-fxos. So if you are subscribed to one of the aforementioned lists, you will be subscribed to the new dev-fxos list and we will shortly be decommissioning dev-gaia and dev-b2g. Thanks! Michael --001a113ce93ebce35d051e4c0c73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: qu...

Merging dev-gaia and dev-b2g into dev-fxos
--001a113ce93ebce35d051e4c0c73 Content-Type: text/plain; charset=UTF-8 Hello people of Firefox OS, After a discussion we have decided that the distinction between dev-gaia and dev-b2g mailing lists is not enough to warrant maintaining two lists. So we are deprecating both in favor of dev-fxos. So if you are subscribed to one of the aforementioned lists, you will be subscribed to the new dev-fxos list and we will shortly be decommissioning dev-gaia and dev-b2g. Thanks! Michael --001a113ce93ebce35d051e4c0c73 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: qu...

B2G mochitests now use mochitest.ini manifests instead of b2g.json
For awhile now we've been using these hacky JSON based manifests to enable and disable mochitests on B2G. Now, thanks to the work of an awesome contributor (vaibhav1994), all the B2G mochitests are using the mochitest.ini format. This allows us to annotate tests with metadata, like whether the test should be skipped or not. What does this mean for you? If you are enabling/disabling, or adding a new mochitest, you now need to edit the 'mochitest.ini' file which lives in the same directory as your test file. For example, if I want to disable dom/media/tests/mochit...

mochitest-chrome tests now running on B2G emulators
A mochitest-chrome job is now running on B2G emulators, and appears in Treeherder as M(c). This job skips most existing chrome tests, since most of the existing tests are not compatible with B2G. But it provides a better alternative when writing mochitests that need chrome privileges than using SpecialPowers in mochitest-plain. If you want your new chrome mochitest to get run on B2G, just make sure it's written as an XHTML file and not a XUL one; see https://dxr.mozilla.org/mozilla-central/source/testing/mochitest/static/chrome.template.txt .. If you don't want your new ...

|mach mochitest-remote| and |mach mochitest-b2g-desktop| replaced by |mach mochitest-plain|
Bug 1046992 (just landed on inbound) removes the `mochitest-remote` and `mochitest-b2g-desktop` mach commands. Instead, simply run |mach mochitest-plain| like you would on desktop. The `mochitest-plain` command will detect what platform you have built and do the right thing. In the near future, I'll also be removing all of the suite specific (e.g |mach mochitest-chrome|) commands. The |mach mochitest| command will be the single entry point into the harness, no matter what flavor or platform you are using. On a related note, |mach mochitest-chrome| is also now available...

dev.b2g and dev.gaia redundancy?
I'm relatively new to the project but I see more overlap than not lately in the dev.b2g and dev.gaia newsgroups. Are the original motivations for having distinct groups still still applicable? Would things be easier for more people if we collapsed down to one group? Is that an awful idea? - A +1, half the emails are sent to both lists to take it further I am sitting alone in #fxos on irc On 4 December 2013 00:22, Asa Dotzler <asa@mozilla.com> wrote: > I'm relatively new to the project but I see more overlap than not lately > in the dev.b2g and dev....

XUL Mochitests -> mochitest-chrome
As part of our "get rid of enablePrivilege" project, we're going to propose converting a bunch of existing Mochitests into chrome Mochitests. Generally any test that looks to be hopelessly intertwined with XPCOM will fall into this bucket, but we'll consult with test authors before taking any action. As a more general point, I'd like to propose moving all existing Mochitests that are XUL files into mochitest-chrome. Since we no longer support running XUL on the web, it seems silly to continue to test that scenario. I suspect that most of these tests were not wr...

[summary of dev.platform thread] Please consider implementing new B2G features in C++ instead of JS
Hi all. Not everyone on this newsgroup reads dev.platform, so I wanted to summarize a discussion we recently had there for this audience. Essentially, gecko in B2G uses a lot of memory for its JS components. About half of this is due to four workers (RIL, Net, WiFi * 2), and the rest is spread out among various bits of Gecko: BrowserElementParent.jsm, Webapps.js, and hundreds of other files. If we're going to continue targeting 256mb devices, where we have ~120mb available for all Gecko processes, I argued that we need to improve this situation. We also need to not make the...

Merging dev-tech-layout into dev-platform
Today I found out that I had missed a post from David Baron on dev-tech-layout, because I had no idea that this list exists. I think dev-platform is a better place to have the conversation related to the layout module (people are already having discussions about other modules over there). Does anybody have any objections? Cheers, Ehsan ...

Merging dev-tech-layout into dev-platform
Today I found out that I had missed a post from David Baron on dev-tech-layout, because I had no idea that this list exists. I think dev-platform is a better place to have the conversation related to the layout module (people are already having discussions about other modules over there). Does anybody have any objections? Cheers, Ehsan ...

[signin][b2g] - B2G->dev merge
We have been discussing forceAuthentication, but there are other B2G features that must be merged into dev. So that JedP and I can prioritize, bisect, and tackle, can we get a list of features and any dependencies they have on other features? Off the top of my head I know of: * forceAuthentication * forceIssuer * allowUnverified * special TOS/PP handling - in B2G, TOS/PP links must be opened in an IFRAME instead of in a new tab. * A way of indicating experimental features Are there other new features that I am missing? We are actively discussing forceAuthentication, but t...

times out all the time!!!
Name: Optical Excellence Email: specsatopticalexcellencedotca Product: Thunderbird Summary: times out all the time!!! Comments: I can not access either the web email site downloaded mail nor the Thunderbird email downloaded email because I get a time out all the time!! Not a way to run an email site, especially as this is for our business! Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 ...

Chrome on Android
I installed Chrome, FireFox browser and MX player from Android market on the tablet with Android. I can’t play video in IW application by using the component TIWMPEG. I've tried all formats: AVI FLV SWF WOV WMF ASF MPG MP4 I get the message ”plugin need”. What plugin is needed? How to play the video from IW app in Chrome or FireFox on Android? > {quote:title=Lena Ilicheva wrote:}{quote} > I installed Chrome, FireFox browser and MX player from Android market on the tablet with Android. I can’t play video in IW application by using the component TIWMPEG. > I'v...

Web resources about - Is it time for mochitest-chrome on Android and B2G - mozilla.dev.platform

Resources last updated: 12/8/2015 7:27:31 AM