Project Fission/Enabling Tests with Fission: Difference between revisions

Jump to navigation Jump to search
(fixed typo)
Tags: Mobile edit Mobile web edit
Line 6: Line 6:
==General Tips==
==General Tips==


* To run a mochitest with Fission enabled, use '--fission-enabled' with 'mach test'.
* To run a mochitest with Fission enabled, use '--enable-fission’ with 'mach test'.
* SpecialPowers.useRemoteSubframes can be used to check if Fission is enabled from a mochitest.
* SpecialPowers.useRemoteSubframes can be used to check if Fission is enabled from a mochitest.
* [https://searchfox.org/mozilla-central/rev/ec806131cb7bcd1c26c254d25cd5ab8a61b2aeb6/testing/specialpowers/content/SpecialPowersAPI.jsm#1366 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, one can use SpecialPowers.spawn() to send a script over to the process of the iframe to assert and/or return a value.
* [https://searchfox.org/mozilla-central/rev/ec806131cb7bcd1c26c254d25cd5ab8a61b2aeb6/testing/specialpowers/content/SpecialPowersAPI.jsm#1366 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, one can use SpecialPowers.spawn() to send a script over to the process of the iframe to assert and/or return a value.
Confirmed users
30

edits

Navigation menu