Recent changes in comm-central’s test mechanisms

There’s been a few changes around comm-central’s automated testing recently that I’ve been meaning to post about.

The most important changes to note are:

  • make check now only runs the compiled-code unit tests (we only have two of these in mailnews).
  • make xpcshell-tests now runs the xpcshell tests that were previously run as part of make check. I have just checked in the patch which means you can now do make -C objdir/mailnews xpcshell-tests like you could with the check command before.
  • The check-one and check-interactive commands remain the same.

I have also just updated the wiki page explaining the numbers on the Tinderbox pages.

The xpcshell-tests also now have shutdown leak statistics enabled. Unfortunately for mailnews we currently have a lot of leaks due to our test harness (which provides a consistent profile directory that isn’t the build directory and a few other things). We’re currently not cleaning the test harness leaks up as this would break check-interactive – a useful tool to developers. Hopefully this will be fixed soon (patch in review) and then we can tidy up our leak logs.

Acid Tests on Thunderbird

Robert’s recent post about the acid tests on wikipedia reminded me that I’ve been meaning to post about Thunderbird and the acid tests for a few months now.

Sometime last year there was a discussion on the results of Acid tests in Thunderbird. Whilst Acid3 was a similar result to the equivalent Firefox build, Acid2 was much worse – this was strange given that Thunderbird runs on virtually the same Gecko engine that Firefox does.

A bug was duly filed, after a bit of investigation, it was found that there were two issues: 1) Thunderbird denied access to load data URIs, 2) Thunderbird needed plugins enabling (plugin loading is disabled by default to help protect users against detection of reading by loading remote data, and potentially other reasons I don’t know about at this time).

We then fixed the content policy so that we enabled the data URIs. Using today’s nightly builds (Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b5pre) Gecko/20090429...), here is Acid 2 in Firefox (left) and Thunderbird (right):

Additionally Thunderbird passes the Acid 3 test to very nearly the same extent as Firefox:

The difference here is the “Linktest Failed” – as Thunderbird isn’t a browser, we don’t enable history on links (they don’t turn a different colour when you click on them). You can see this effect of the “Linktest Failed” in Firefox’s private browsing mode.

For both these tests, all I changed from the default set up was to set the preference mailnews.message_display.allow.plugins to true. To load the web page, I set Thunderbird’s start page to the appropriate Acid 2 or Acid 3 URL and then selected Go -> Mail Start Page.

This is both good for Thunderbird – basing ourselves on Gecko means we don’t have to worry too much about laying out what we display – and for extensions – authors can know they can load pages/render content in Thunderbird and they will come out the same as Firefox.

A year at Mozilla Messaging

Just over a year ago, I left my previous job at Thales and joined Mozilla Messaging. This was quite a big change, a big multi-national company, to a new open source start-up. I’ve definitely enjoyed this last year and I’m looking forward to next year. Here’s a few highlights:

  • Traveling abroad – before I joined Mozilla Messaging I’d only be aboard a couple of times when I was at high school. Over the year, I’ve been to Germany (for the Calendar meet up), Whistler (for the Mozilla Summit), and a Mozilla Messaging work week at the Mozilla Corporation offices in Mountain View.
  • Expanding the MailNews test infrastructure.
  • Helping move Thunderbird & co from cvs to hg – since the move I’ve definitely not looked back, hg is sooo much better than cvs.
  • Continuing Address Book improvements – whilst its still not as far progressed as perhaps I’d like it to, the backend is much better, and some of the fixes are filtering through to the UI now as well.
  • Likewise, continued improvements across the whole of Thunderbird.
  • Being release driver for Shredder Alpha 3.
  • Getting Leak and Bloat tests running on Thunderbird.
  • Switching Thunderbird and SeaMonkey from the old “wallet” code to the toolkit password manager.
  • Engaging with the community – its been great having discussions on #thunderbird, face-to-face and other places about how people use Thunderbird, and what their problems and issues are.
  • The birth of my daughter.

For the next year, there’s a lot to look forward to, we’ve got the release of Thunderbird 3, followed by starting work on the next version – we’re already thinking of ideas of where we want to go and what we need to do, and its exciting. I’ll be blogging more on what I’m specifically thinking about over the next month or two.