33 "_temp_mediafilemanager_files");
40 if (job.status == Components.interfaces.sbIJobProgress.STATUS_RUNNING) {
46 var properties = getMediaManagerProperties();
48 var fileManager =
Cc[SB_MEDIAFILEMANAGER]
49 .createInstance(
Ci.sbIMediaFileManager);
50 fileManager.init(properties);
53 var isManaged =
false;
56 isManaged = fileManager.organizeItem(item,
57 Ci.sbIMediaFileManager.MANAGE_RENAME |
58 Ci.sbIMediaFileManager.MANAGE_COPY |
59 Ci.sbIMediaFileManager.MANAGE_MOVE);
61 doFail(
"ERROR: Unable to manage item: " + err);
63 assertTrue(isManaged,
"Unable to manage item " +
i);
65 "Item " +
i +
" was not relocated properly");
70 var isManaged =
false;
73 isManaged = fileManager.organizeItem(item,
74 Ci.sbIMediaFileManager.MANAGE_DELETE);
76 doFail(
"Unable to delete item: " + err);
78 assertTrue(isManaged,
"Unable to delete item " +
i);
79 assertTrue(checkDeletedItem(item),
"Item " +
i +
" was not deleted");
91 .getService(
Ci.sbILibraryManager);
111 var fileMetadataService =
Cc[
"@songbirdnest.com/Songbird/FileMetadataService;1"]
112 .getService(
Ci.sbIFileMetadataService);
function newAppRelativeFile(path)
function assertTrue(aTest, aMessage)
function assertEqual(aExpected, aActual, aMessage)
function createLibrary(databaseGuid, databaseLocation)
function getCopyOfFolder(folder, tempName)
Copy the given folder to tempName, returning an nsIFile for the new location.
_getSelectedPageStyle s i
function TestMediaListListener()