35 var
server =
Cc[
"@mozilla.org/server/jshttp;1"]
36 .createInstance(
Ci.nsIHttpServer);
39 server.registerDirectory(
"/",
getFile(
"."));
43 var manager =
Cc[
"@songbirdnest.com/Songbird/PlaylistReaderManager;1"]
44 .getService(
Ci.sbIPlaylistReaderManager);
45 var
listener =
Cc[
"@songbirdnest.com/Songbird/PlaylistReaderListener;1"]
46 .createInstance(
Ci.sbIPlaylistReaderListener);
51 server.stop(
function() {});
53 listener.observer =
null;
58 var mediaList = library.createMediaList(
"simple");
59 var
uri =
newURI(
"http://localhost:" + port +
"/absolute_remote.m3u");
60 manager.loadPlaylist(uri, mediaList,
null,
false, listener);
function runTest()
Test file.
function server(port, basePath)
function getFile(fileName)
function createLibrary(databaseGuid, databaseLocation)
function newURI(aURLString)
function assertMediaList(aMediaList, aItemTestsFile, aPort)
function getTestServerPortNumber()
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe