Changes

Jump to: navigation, search

WebExtensions/Contribution Onramp

465 bytes added, 15:09, 20 September 2018
Testing: added some additional notes related to the location of the Fennec mochitests and a link to the "Running tests on the android emulator" MDN doc page
** toolkit/components/extensions/test/browser/ ([https://searchfox.org/mozilla-central/source/toolkit/components/extensions/test/browser Searchfox link])
** browser/components/extensions/test/browser/ ([https://searchfox.org/mozilla-central/source/browser/components/extensions/test/browser Searchfox link])
 
* Firefox for Android mochitests:
** mobile/android/components/extensions/test/mochitest ([https://searchfox.org/mozilla-central/source/mobile/android/components/extensions/test/mochitest Searchfox link])
These tests can be run with the “mach test” command. To run a specific test, use “mach test [paths to test files or directories]”.
In browser-chrome tests, the BrowserTestUtils namespace provides many useful test helpers, such as BrowserTestUtils.openNewForegroundTab to open a new tab. BrowserTestUtils is implemented and documented at https://searchfox.org/mozilla-central/source/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm
 
Running the tests (xpcshell tests and Firefox for Android mochitests) on the Android emulator requires some [https://wiki.mozilla.org/Mobile/Fennec/Android/Testing#Running_tests_on_the_Android_emulator additional setup of the local development environment].
== Submitting a Patch ==
41
edits

Navigation menu