35 var manager =
Cc[
"@songbirdnest.com/Songbird/PlaylistReaderManager;1"]
36 .getService(
Ci.sbIPlaylistReaderManager);
40 var mimeTypesCount = {};
41 var mimeTypes = manager.supportedMIMETypes(mimeTypesCount);
42 var
expected = [
"audio/mpegurl",
"audio/x-mpegurl",
"audio/x-scpls",
"text/html",
"application/rss+xml",
"application/atom+xml",
"video/x-ms-asf"];
44 for (var
i = 0;
i < mimeTypesCount.value;
i++) {
51 var exts = manager.supportedFileExtensions(extCount);
52 expected = [
"pls",
"m3u",
"m3u8",
"html",
"htm",
"php",
"php3",
"",
"atom",
"rss",
"asx"];
54 for (var
i = 0;
i < extCount.value;
i++) {
60 var mediaList = library.createMediaList(
"simple");
62 manager.originalURI =
newURI(
"http://www.foo.com/");
63 manager.read(file, mediaList,
null,
false);
68 var file =
getFile(
"relative_remote.pls");
69 manager.originalURI =
newURI(
"http://www.foo.com/");
70 manager.read(file, mediaList,
"audio/x-scpls",
false);
75 if (platform ==
"Windows_NT") {
78 manager.loadPlaylist(fileUri, mediaList,
null,
false,
null);
82 manager.loadPlaylist(fileUri, mediaList,
null,
false,
null);
93 return a.filter(
function(e) {
return e != v; });
98 var
ioService =
Cc[
"@mozilla.org/network/io-service;1"].
100 return ioService.newFileURI(aFile);
function assertEqual(aExpected, aActual, aMessage)
getService(Ci.sbIFaceplateManager)
function getFile(fileName)
function createLibrary(databaseGuid, databaseLocation)
function newURI(aURLString)
function assertMediaList(aMediaList, aItemTestsFile, aPort)
_getSelectedPageStyle s i