WebExtensions/Contribution Onramp: Difference between revisions

Jump to navigation Jump to search
→‎Testing: fixed formatting in test section
(→‎Testing: fixed formatting in test section)
Line 40: Line 40:
Most tests have the following minimal structure:
Most tests have the following minimal structure:


add_task(async function someShortAndSimpleDescriptionHere() {
<nowiki>add_task(async function someShortAndSimpleDescriptionHere() {
   // Define a test extension.
   // Define a test extension.
   let extension = ExtensionTestUtils.loadExtension( .... );
   let extension = ExtensionTestUtils.loadExtension( .... );
Line 52: Line 52:
   await extension.unload();
   await extension.unload();
});
});
</nowiki>


ExtensionTestUtils.loadExtension allows you to quickly generate a test extension, and its input parameters are documented at:
ExtensionTestUtils.loadExtension allows you to quickly generate a test extension, and its input parameters are documented at:
1,698

edits

Navigation menu