26 Components.utils.import(
"resource://gre/modules/XPCOMUtils.jsm");
27 Components.utils.import(
"resource://app/jsmodules/ArrayConverter.jsm");
29 if (typeof(
Cc) ==
"undefined")
30 this.
Cc = Components.classes;
31 if (typeof(
Ci) ==
"undefined")
32 this.
Ci = Components.interfaces;
35 var defaultProvider =
Cc[
"@getnightingale.com/equalizer-presets/defaults;1"]
36 .getService(
Ci.ngIEqualizerPresetProvider);
38 var presets = defaultProvider.presets;
39 assertTrue(presets instanceof
Ci.nsIArray,
"Presets aren't an nsIArray");
40 assertEqual(presets.length, 17,
"Preset number in default provider is off");
function assertTrue(aTest, aMessage)
function assertEqual(aExpected, aActual, aMessage)
function runTest()
Advanced DataRemote unit tests.