Changes

Jump to: navigation, search

Project Fission/Enabling Tests with Fission

231 bytes added, 14:56, 10 October 2019
added info for also removing fail-if annotation when running locally.
==General Tips==
* To run a mochitest with Fission enabledlocally, use '--enable-fission’ with 'mach test'. If the test is marked as a "fail-if" however, then you also need to disable that annotation. Otherwise, the test will report a false success (resulting from an expected fail). The skipped tests do not need this extra step.
* 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.
Confirm
30
edits

Navigation menu