33 Components.utils.import(
"resource://app/jsmodules/sbProperties.jsm");
34 Components.utils.import(
"resource://app/jsmodules/sbLibraryUtils.jsm");
43 var
array =
Cc[
"@songbirdnest.com/Songbird/Library/LocalDatabase/GUIDArray;1"]
44 .createInstance(
Ci.sbILocalDatabaseGUIDArray);
45 array.databaseGUID =
"test_bug7950";
46 array.baseTable =
"media_items";
48 library.QueryInterface(
Ci.sbILocalDatabaseLibrary).propertyCache;
52 for (var
i = 0;
i < library.length;
i++) {
53 var item = library.getItemByIndex(
i);
54 item.contentType = item.contentType + (
i % 3);
57 array.addFilter(SBProperties.contentType,
61 array.addSort(SBProperties.artistName,
true);
62 array.addSort(SBProperties.albumName,
true);
63 array.addSort(SBProperties.trackNumber,
true);
65 for (var
i = 0;
i < array.length;
i++) {
66 var item = library.getItemByGuid(array.getGuidByIndex(
i));
function runTest()
Test file.
function createLibrary(databaseGuid, databaseLocation)
function StringArrayEnumerator(aArray)
_getSelectedPageStyle s i