1,698
edits
Caitmuenster (talk | contribs) (→Setting Up Developer Environment: formatting fix) |
Caitmuenster (talk | contribs) (→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: |
edits