Sync Mozilla tests as of https://hg.mozilla.org/mozilla-central/rev/ad5fff4d45c0 .