30 Components.utils.import(
"resource://app/jsmodules/sbProperties.jsm");
31 var propMan =
Cc[
"@songbirdnest.com/Songbird/Properties/PropertyManager;1"]
32 .getService(
Ci.sbIPropertyManager);
43 var deps = propMan.getDependentProperties(SBProperties.trackName);
45 [SBProperties.albumName,
46 SBProperties.artistName,
47 SBProperties.albumArtistName,
50 SBProperties.discNumber]);
53 deps = propMan.getDependentProperties(SBProperties.albumName);
55 [SBProperties.artistName,
56 SBProperties.albumArtistName,
59 SBProperties.discNumber,
60 SBProperties.trackNumber]);
63 deps = propMan.getDependentProperties(SBProperties.artistName);
67 SBProperties.discNumber,
68 SBProperties.trackNumber]);
71 deps = propMan.getDependentProperties(SBProperties.contentURL);
82 aProps = SBProperties.arrayToJSObject(aProps);
83 for each (var prop
in aExpected) {
function assertTrue(aTest, aMessage)
function assertEqual(aExpected, aActual, aMessage)
function runTest()
Test file.
function assertPropertyArrayContains(aProps, aExpected)