Overview of Testing Objects

This directory contains sample JS components to test the basic JsAccount concepts, which can also serve as templates for new implementations.

Component Naming

Because there are many different components involved with different roles, it will be helpful to keep things straight by using a specific naming convention for objects. For testing, we consider that we are creating a new account type "foo". For the specific case of the JA implementation of an object that implements the nsIMsgMailNewsUrl interface, we'll use the following naming convention. Typically C++ classes and JS constructors are capitalized, class instances are not.

Names are constructed with the following subparts:

(Ja)(AccountType)(Language)(ComponentType)(Role)

Common parts of names

Example: The C++ class that delegates the implementation of nsIMsgMailNewsUrl (abbreviated as Url) to either a C++ or JS method is called JaCppUrlDelegator.