33 Components.utils.import(
"resource://app/jsmodules/sbProperties.jsm");
34 Components.utils.import(
"resource://app/jsmodules/sbLibraryUtils.jsm");
39 var list = library.getMediaItem(
"7e8dcc95-7a1d-4bb3-9b14-d4906a9952cb");
40 var view = list.createView();
44 [SBProperties.artistName, [
"o'bar"]]
47 view.searchConstraint =
search;
50 view.searchConstraint =
null;
51 view.getItemByIndex(2).setProperty(SBProperties.artistName,
"o'bar");
52 view.searchConstraint =
search;
58 [SBProperties.artistName, [
"foo bar"]]
61 view.searchConstraint =
search;
64 view.searchConstraint =
null;
65 view.getItemByIndex(2).setProperty(SBProperties.artistName,
"foo bar");
66 view.searchConstraint =
search;
71 [SBProperties.artistName, [
"foo bar baz"]]
74 view.searchConstraint =
search;
function assertEqual(aExpected, aActual, aMessage)
function search(aFolderId, aSearchStr, aExpectedScopeButtonId)
function createLibrary(databaseGuid, databaseLocation)
function runTest()
Test file.
Javascript wrappers for common library tasks.