WebExtensions/Contribution Onramp: Difference between revisions

→‎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
(→‎Setting Up Developer Environment: Added notes on Firefox for Android development environment setup)
(→‎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)
Line 39: Line 39:
** toolkit/components/extensions/test/browser/ ([https://searchfox.org/mozilla-central/source/toolkit/components/extensions/test/browser Searchfox link])
** 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])
** 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]”.
These tests can be run with the “mach test” command. To run a specific test, use “mach test [paths to test files or directories]”.
Line 68: Line 71:


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
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 ==  
== Submitting a Patch ==  
41

edits