35 var databaseGUID =
"test_propertycache";
38 var cache = library.QueryInterface(
Ci.sbILocalDatabaseLibrary).propertyCache;
40 var db = loadMockDatabase();
46 if(guidList.length > 20) {
48 var bags = cache.getProperties(guidList, guidList.length, bagCount);
51 for(var
i = 0;
i < bagCount.value;
i++) {
55 var guid = guidList[
i];
56 assertEqual(db[guid][p], bags[
i].getProperty(p), p +
" " + guid);
68 var bags = cache.getProperties([guid], 1, bagCount);
74 assertEqual(item[p], bags[0].getProperty(p), p +
" " + guid);
function assertEqual(aExpected, aActual, aMessage)
function createLibrary(databaseGuid, databaseLocation)
function runTest()
Test file.
_getSelectedPageStyle s i