test_feathersManager.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://gre/modules/XPCOMUtils.jsm")
 FeathersManager test file. More...
 
 getService (Components.interfaces.sbIFeathersManager)
 
function saveDataRemotes ()
 
function restoreDataRemotes ()
 
function newFeathersDescription ()
 

Variables

var gDefaultMainLayoutURL = ""
 
var gDefaultSecondaryLayoutURL = ""
 
var gDefaultSkinName = ""
 
var gBundledSkins = []
 
var gBundledLayouts = []
 
var gRequiredSkinInternalNames = [ "bluemonday" ]
 
var gRequiredLayoutURLs
 
const PREF_DEFAULT_MAIN_LAYOUT = "songbird.feathers.default_main_layout"
 
const PREF_DEFAULT_SECONDARY_LAYOUT = "songbird.feathers.default_secondary_layout"
 
const PREF_DEFAULT_SKIN_INTERNALNAME = "songbird.feathers.default_skin_internalname"
 
var feathersManager = Components.classes['@songbirdnest.com/songbird/feathersmanager
 
var skins = []
 
var layouts = []
 
var createDataRemote
 
var layoutDataRemote = createDataRemote("feathers.selectedLayout", null)
 
var skinDataRemote = createDataRemote("selectedSkin", "general.skins.")
 
var previousLayoutDataRemote = createDataRemote("feathers.previousLayout", null)
 
var previousSkinDataRemote = createDataRemote("feathers.previousSkin", null)
 
var originalDataRemoteValues = []
 

Function Documentation

getService ( Components.interfaces.  sbIFeathersManager)
Components utils import ( "resource://gre/modules/XPCOMUtils.jsm"  )

FeathersManager test file.

function newFeathersDescription ( )

Creates a generic description object that works for skins and layouts

Definition at line 108 of file test_feathersManager.js.

function restoreDataRemotes ( )

Restore saved FeathersManager dataremote values. This is so that changes made during testing do not end up in your profile.

Definition at line 96 of file test_feathersManager.js.

function saveDataRemotes ( )

Store the original values of all FeathersManager dataremotes so that we can restore them once the tests are complete

Definition at line 84 of file test_feathersManager.js.

Variable Documentation

var createDataRemote
Initial value:
= new Components.Constructor(
"@songbirdnest.com/Songbird/DataRemote;1",
Components.interfaces.sbIDataRemote, "init")

Definition at line 67 of file test_feathersManager.js.

var feathersManager = Components.classes['@songbirdnest.com/songbird/feathersmanager

Definition at line 52 of file test_feathersManager.js.

var gBundledLayouts = []

Definition at line 39 of file test_feathersManager.js.

var gBundledSkins = []

Definition at line 38 of file test_feathersManager.js.

var gDefaultMainLayoutURL = ""

Definition at line 35 of file test_feathersManager.js.

var gDefaultSecondaryLayoutURL = ""

Definition at line 36 of file test_feathersManager.js.

var gDefaultSkinName = ""

Definition at line 37 of file test_feathersManager.js.

var gRequiredLayoutURLs
Initial value:
= [ "chrome://bluemonday/content/xul/mainplayer.xul",
"chrome://bluemonday/content/xul/miniplayer.xul" ]

Definition at line 43 of file test_feathersManager.js.

var gRequiredSkinInternalNames = [ "bluemonday" ]

Definition at line 42 of file test_feathersManager.js.

var layoutDataRemote = createDataRemote("feathers.selectedLayout", null)

Definition at line 71 of file test_feathersManager.js.

var layouts = []

Definition at line 63 of file test_feathersManager.js.

var originalDataRemoteValues = []

Definition at line 76 of file test_feathersManager.js.

const PREF_DEFAULT_MAIN_LAYOUT = "songbird.feathers.default_main_layout"

Definition at line 48 of file test_feathersManager.js.

const PREF_DEFAULT_SECONDARY_LAYOUT = "songbird.feathers.default_secondary_layout"

Definition at line 49 of file test_feathersManager.js.

const PREF_DEFAULT_SKIN_INTERNALNAME = "songbird.feathers.default_skin_internalname"

Definition at line 50 of file test_feathersManager.js.

var previousLayoutDataRemote = createDataRemote("feathers.previousLayout", null)

Definition at line 73 of file test_feathersManager.js.

var previousSkinDataRemote = createDataRemote("feathers.previousSkin", null)

Definition at line 74 of file test_feathersManager.js.

var skinDataRemote = createDataRemote("selectedSkin", "general.skins.")

Definition at line 72 of file test_feathersManager.js.

var skins = []

Definition at line 60 of file test_feathersManager.js.