29 var prop =
"http://songbirdnest.com/data/1.0#downloadButton";
32 Cc[
"@songbirdnest.com/Songbird/Properties/Builder/DownloadButton;1"]
33 .createInstance(
Ci.sbIDownloadButtonPropertyBuilder);
35 builder.propertyID = prop;
36 builder.labelKey =
"property.download_button";
38 var pi = builder.get();
51 var tvpi = pi.QueryInterface(
Ci.sbITreeViewPropertyInfo);
54 assertEqual(tvpi.getProgressMode(
"0|0|0"),
Ci.nsITreeView.PROGRESS_NONE);
55 assertEqual(tvpi.getProgressMode(
"1|0|0"),
Ci.nsITreeView.PROGRESS_NONE);
56 assertEqual(tvpi.getProgressMode(
"2|0|0"),
Ci.nsITreeView.PROGRESS_UNDETERMINED);
57 assertEqual(tvpi.getProgressMode(
"3|0|0"),
Ci.nsITreeView.PROGRESS_NORMAL);
58 assertEqual(tvpi.getProgressMode(
"4|0|0"),
Ci.nsITreeView.PROGRESS_NORMAL);
59 assertEqual(tvpi.getProgressMode(
"5|0|0"),
Ci.nsITreeView.PROGRESS_NONE);
function assertEqual(aExpected, aActual, aMessage)