MailNews:Xpcshell tests: Difference between revisions

Jump to navigation Jump to search
→‎MailNews xpcshell test facilities: Bug 432812 has now been checked in
(Add some basic guidelines and restructure the page a bit.)
(→‎MailNews xpcshell test facilities: Bug 432812 has now been checked in)
Line 23: Line 23:
=== MailNews xpcshell test facilities ===
=== MailNews xpcshell test facilities ===


Once {{bug|432812}} is checked in, each existing directory where tests are run will have head_*.js and tail_*.js files that will provide the following by importing core scripts:
Each existing unit test directory has head_*.js and tail_*.js files that provide the following by importing core scripts:


* A global variable "profileDir" containing an nsIFile variable with the profile directory to use for the xpcshell tests.
* A global variable "profileDir" containing an nsIFile variable with the profile directory to use for the xpcshell tests.
canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,628

edits

Navigation menu