test_updateparams.js File Reference

Go to the source code of this file.

Variables

const CLASS_ID = Components.ID("{12345678-1234-1234-1234-123456789abc}")
 
const CONTRACT_ID = "@songbirdnest.com/moz/sburlformatter;1"
 
var gTestURL = "http://127.0.0.1:4444/?itemID=%ITEM_ID%&custom1=%CUSTOM1%&custom2=%CUSTOM2%"
 
var gExpectedURL = null
 
var gSeenExpectedURL = false
 
var gComponentRegistrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar)
 
var gObserverService = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService)
 
var gCategoryManager = Cc["@mozilla.org/categorymanager;1"].getService(Ci.nsICategoryManager)
 
var paramHandlerFactory
 

Variable Documentation

const CLASS_ID = Components.ID("{12345678-1234-1234-1234-123456789abc}")

Definition at line 49 of file test_updateparams.js.

const CONTRACT_ID = "@songbirdnest.com/moz/sburlformatter;1"

Definition at line 51 of file test_updateparams.js.

var gCategoryManager = Cc["@mozilla.org/categorymanager;1"].getService(Ci.nsICategoryManager)

Definition at line 59 of file test_updateparams.js.

var gComponentRegistrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar)

Definition at line 57 of file test_updateparams.js.

var gExpectedURL = null

Definition at line 54 of file test_updateparams.js.

var gObserverService = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService)

Definition at line 58 of file test_updateparams.js.

var gSeenExpectedURL = false

Definition at line 55 of file test_updateparams.js.

var gTestURL = "http://127.0.0.1:4444/?itemID=%ITEM_ID%&custom1=%CUSTOM1%&custom2=%CUSTOM2%"

Definition at line 53 of file test_updateparams.js.

var paramHandlerFactory
Initial value:
= {
QueryInterface: function(iid) {
if (iid.equals(Ci.nsIFactory) || iid.equals(Ci.nsISupports))
return this;
throw Components.results.NS_ERROR_NO_INTERFACE;
},
createInstance: function(outer, iid) {
var bag = Cc["@mozilla.org/hash-property-bag;1"]
.createInstance(Ci.nsIWritablePropertyBag);
bag.setProperty("CUSTOM1", "custom_parameter_1");
bag.setProperty("CUSTOM2", "custom_parameter_2");
return bag.QueryInterface(iid);
}
}
const Cc
sidebarFactory createInstance
Definition: nsSidebar.js:351
sbOSDControlService prototype QueryInterface
const Ci

Definition at line 62 of file test_updateparams.js.