43 var item = one.createMediaItem(uri,
null,
true);
55 for (var
i = 0;
i < 10;
i++) {
56 items.push(one.createMediaItem(uri,
null,
true));
61 two.addSome(enumerator);
67 var list1 = two.createMediaList(
"simple");
70 var list2 = two.createMediaList(
"simple");
75 list1.addSome(enumerator);
83 list2.addSome(enumerator);
96 list2.addSome(enumerator);
101 var list3 = one.copyMediaList(
"simple", list2,
false);
107 var list4 = two.copyMediaList(
"simple", list2,
false);
113 var list5 = two.copyMediaList(
"simple", list3,
false);
123 for(var
i = 0;
i < 10;
i++) {
124 two.remove(list1.getItemByIndex(0));
136 var libOneLength = libOne.length;
139 libOne.createMediaItem(uri);
147 libTwo.addListener(listener);
149 list1 = libOne.createMediaList(
"simple");
150 var list1GUID = list1.guid;
155 assertTrue(listener.added[0].item instanceof
Ci.sbIMediaList);
162 libTwo.removeListener(listener);
function runTest()
Test file.
function assertNotEqual(aExpected, aActual, aMessage)
function assertTrue(aTest, aMessage)
function assertEqual(aExpected, aActual, aMessage)
function SimpleArrayEnumerator(aArray)
function createLibrary(databaseGuid, databaseLocation)
function newURI(aURLString)
_getSelectedPageStyle s i
function TestMediaListListener()