33 Components.utils.import(
"resource://app/jsmodules/sbProperties.jsm");
46 var item = library.createMediaItem(
newURI(
"http://example.com/zoo.mp3"));
47 item.setProperty(SBProperties.albumName,
"foo");
57 item.setProperty(SBProperties.albumName,
"bar");
67 item.setProperty(SBProperties.artistName,
"foo");
108 var dbq =
Cc[
"@songbirdnest.com/Songbird/DatabaseQuery;1"]
109 .createInstance(
Ci.sbIDatabaseQuery);
111 dbq.setDatabaseGUID(
"test_fts");
112 dbq.addQuery(
"select count(1) from resource_properties_fts_all where alldata match '" + obj +
"'");
115 var dbr = dbq.getResultObject();
116 return parseInt(dbr.getRowCell(0, 0));
function countFtsAllRows(obj)
function assertEqual(aExpected, aActual, aMessage)
function createLibrary(databaseGuid, databaseLocation)
function newURI(aURLString)
function runTest()
Test file.