31 Components.utils.import(
"resource://app/jsmodules/sbProperties.jsm");
33 var propMan =
Cc[
"@songbirdnest.com/Songbird/Properties/PropertyManager;1"]
34 .getService(
Ci.sbIPropertyManager);
35 var info = propMan.getPropertyInfo(SBProperties.rating);
38 var clickable = info.QueryInterface(
Ci.sbIClickablePropertyInfo);
39 var
value = clickable.getValueForClick(
"4", 0, 0, 0, 0);
43 value = clickable.getValueForClick(
"4", 0, 0, ZERO_HIT_WIDTH + (STAR_WIDTH * 4) - 1, 0);
45 value = clickable.getValueForClick(
"1", 0, 0, ZERO_HIT_WIDTH + (STAR_WIDTH * 1) - 1, 0);
function assertTrue(aTest, aMessage)
function runTest()
Advanced DataRemote unit tests.
function assertEqual(aExpected, aActual, aMessage)
function assertFalse(aTest, aMessage)