37 dump(
"\n\n\n\nTesting HelloWorld component\n\n\n\n");
39 if (!(
"sbIHelloWorld" in Components.interfaces)) {
40 dump(
"\n\n\nWARNING: The HelloWorld component is not installed. Test aborted.\n\n\n");
41 return Components.results.NS_OK;
44 var helloWorld = Components.classes[
"@songbirdnest.com/Songbird/HelloWorld;1"]
45 .createInstance(Components.interfaces.sbIHelloWorld);
47 assertEqual(helloWorld.getMessage(),
"Hello World");
49 return Components.results.NS_OK;
function assertEqual(aExpected, aActual, aMessage)
function runTest()
Advanced DataRemote unit tests.