From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- .../jsaccount/test/unit/resources/readme.html | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 comm/mailnews/jsaccount/test/unit/resources/readme.html (limited to 'comm/mailnews/jsaccount/test/unit/resources/readme.html') diff --git a/comm/mailnews/jsaccount/test/unit/resources/readme.html b/comm/mailnews/jsaccount/test/unit/resources/readme.html new file mode 100644 index 0000000000..e5490e7d41 --- /dev/null +++ b/comm/mailnews/jsaccount/test/unit/resources/readme.html @@ -0,0 +1,62 @@ + + + + + JsAccount Usage and Architecture + + +

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. + + -- cgit v1.2.3