Compare Revisions

Using nsIXULAppInfo

Revision 85099:

Revision 85099 by jhatlak on

Revision 351413:

Revision 351413 by rnewman on

Title:
Using nsIXULAppInfo
Using nsIXULAppInfo
Slug:
Using_nsIXULAppInfo
Using_nsIXULAppInfo
Tags:
Extensions, Add-ons
"Extensions","Add-ons"
Content:

Revision 85099
Revision 351413
tt125    <h3 id="Getting_nsIXULAppInfo" name="Getting_nsIXULAppInfo">
126      Getting <code>nsIXULAppInfo</code> in xpcshell tests
127    </h3>
128    <p>
129      In Firefox 21, a testing module was added that provides acc
 >ess to app info during the execution of xpcshell tests. See <a hr
 >ef="https://bugzilla.mozilla.org/show_bug.cgi?id=809920" title="h
 >ttps://bugzilla.mozilla.org/show_bug.cgi?id=809920">Bug 809920</a
 >>, and in summary:
130    </p>
131    <pre class="brush: js">
132// Work around the fact that xpcshell doesn't have a proper app-i
 >nfo XPCOM object.
133Cu.import("resource://testing-common/AppInfo.jsm");
134updateAppInfo();
135</pre>

Back to History