Go to the source code of this file.
function CHROME_NS |
( |
|
property | ) |
|
gProfD create |
( |
Components.interfaces.nsIFile. |
DIRECTORY_TYPE, |
|
|
0755 |
|
|
) |
| |
function createAppInfo |
( |
|
id, |
|
|
|
name, |
|
|
|
version, |
|
|
|
platformVersion |
|
) |
| |
Creates an nsIXULAppInfo
- Parameters
-
id | The ID of the test application |
name | A name for the test application |
version | The version of the application |
platformVersion | The gecko version of the application |
Definition at line 171 of file head_urlformatter.js.
function do_get_addon |
( |
|
name | ) |
|
Returns a testcase xpi
- Parameters
-
name | The name of the testcase (without extension) |
- Returns
- an nsILocalFile pointing to the testcase xpi
Definition at line 148 of file head_urlformatter.js.
function EM_NS |
( |
|
property | ) |
|
function EM_R |
( |
|
property | ) |
|
function getManifestProperty |
( |
|
id, |
|
|
|
property |
|
) |
| |
Extract a string property for an add-on
- Parameters
-
id | ID of the add-on to retrieve a property for |
property | The localname of the property |
- Returns
- String value of the property or undefined if the property does not exist
Definition at line 138 of file head_urlformatter.js.
function getResourceForID |
( |
|
id | ) |
|
Gets a RDF Resource for item with the given ID
- Parameters
-
id | The GUID of the item to construct a RDF resource to the active item for |
- Returns
- The RDF Resource to the Active item.
Definition at line 125 of file head_urlformatter.js.
function intData |
( |
|
literal | ) |
|
Extract the integer value of a RDF Literal
- Parameters
-
- Returns
- integer value of the literal
Definition at line 112 of file head_urlformatter.js.
gDirSvc QueryInterface |
( |
Components.interfaces. |
nsIDirectoryService | ) |
|
Many operations require restarts to take effect. This function should perform all that is necessary for this to happen.
Definition at line 257 of file head_urlformatter.js.
gPrefs setBoolPref |
( |
"extensions.logging.enabled" |
, |
|
|
true |
|
|
) |
| |
Simple function to simulate the termination of an app to the EM. This harness does not support creating a new EM after calling this.
Definition at line 246 of file head_urlformatter.js.
This simulates an application startup. Since we will be starting from an empty profile we follow that path.
Definition at line 214 of file head_urlformatter.js.
function stringData |
( |
|
literalOrResource | ) |
|
Extract the string value from a RDF Literal or Resource
- Parameters
-
literalOrResource | RDF String Literal or Resource |
- Returns
- String value of the literal or resource, or undefined if the object supplied is not a RDF string literal or resource.
Definition at line 98 of file head_urlformatter.js.
Initial value:= {
getFile:
function(prop, persistent) {
persistent.value = true;
},
if (iid.equals(Components.interfaces.nsIDirectoryServiceProvider) ||
iid.equals(Components.interfaces.nsISupports)) {
return this;
}
throw Components.results.NS_ERROR_NO_INTERFACE;
}
}
function getFile(fileName)
Definition at line 298 of file head_urlformatter.js.
Initial value:= Components.classes["@mozilla.org/file/directory_service;1"]
.getService(Components.interfaces.nsIProperties)
Definition at line 283 of file head_urlformatter.js.
Initial value:= Components.classes["@mozilla.org/preferences;1"]
.getService(Components.interfaces.nsIPrefBranch)
Definition at line 317 of file head_urlformatter.js.
var gProfD = gTestRoot.clone() |
Initial value:= Components.classes["@mozilla.org/rdf/rdf-service;1"]
.getService(Components.interfaces.nsIRDFService)
Definition at line 61 of file head_urlformatter.js.
gTestRoot = gDirSvc.get("CurProcD", Components.interfaces.nsILocalFile) |
const NS_APP_PROFILE_DIR_STARTUP = "ProfDS" |
const NS_APP_USER_PROFILE_50_DIR = "ProfD" |
const NS_INSTALL_LOCATION_APPPROFILE = "app-profile" |
const NS_OS_TEMP_DIR = "TmpD" |
const PREFIX_ITEM_URI = "urn:mozilla:item:" |
const PREFIX_NS_CHROME = "http://www.mozilla.org/rdf/chrome#" |
const PREFIX_NS_EM_RDF = "http://www.mozilla.org/2004/em-rdf#" |
const XULAPPINFO_CID = Components.ID("{c763b610-9d49-455a-bbd2-ede71682a1ac}") |
const XULAPPINFO_CONTRACTID = "@mozilla.org/xre/app-info;1" |
const XULRUNTIME_CID = Components.ID("{b96e56dc-1dd1-11b2-91a1-96a45c3e4adf}") |
const XULRUNTIME_CONTRACTID = "@mozilla.org/xre/runtime;1" |