Project Fission/Enabling Tests with Fission

From MozillaWiki
< Project Fission
Revision as of 08:30, 13 September 2019 by Nkochar (talk | contribs) (Created a new page for enabling tests with Fission)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Enabling Tests with Fission

Mochitests-Fission

The Mochitests that are not working with Fission enabled have been annotated with either "skip-if = fission" or "fail-if = fission". Both of these cases need to be fixed.

General Tips

  • To run a mochitest with Fission enabled, use '--fission-enabled' with 'mach test'.
  • SpecialPowers.useRemoteSubframes can be used to check if Fission is enabled from a mochitest.
  • SpecialPowers.spawn() is typically used when you have a cross-process iframe and you need to interact with it in some way that is not supported cross-process. In such a case, you can use SpecialPowers.spawn() to send a script over to the process of the iframe to assert and/or return a value.