Go to the source code of this file.
Functions | |
Components utils | import ("resource://gre/modules/XPCOMUtils.jsm") |
The tests the media item controller hiding code. More... | |
function | runTest () |
Advanced DataRemote unit tests. More... | |
function | EnumeratorCounter (aList, aFilter, aCheck) |
function | setupForItemHidden () |
function | checkItemsHidden () |
function | setupForItemRestored () |
function | checkItemsRestored () |
Variables | |
const | K_TRACKTYPE_REMOVED = "TEST_MEDIA_ITEM_CONTROLLER_REMOVED" |
const | K_TRACKTYPE_ADDED = "TEST_MEDIA_ITEM_CONTROLLER_ADDED" |
const | K_TRACKTYPE_SEPARATOR = '\x7F' |
const | K_COMPLETE_TOPIC = "songbird-media-item-controller-cleanup-complete" |
const | K_IDLE_TOPIC = "songbird-media-item-controller-cleanup-idle" |
const | K_TOTAL_ITEMS = 200 |
const | K_SEEN_PROP = SBProperties.base + "libraryItemControllerLastSeenTypes" |
const | K_HIDDEN_PROP = SBProperties.base + "libraryItemControllerTypeDisappeared" |
var | gLibrary = null |
var | gCount = {} |
function checkItemsHidden | ( | ) |
Definition at line 176 of file test_media_item_controller_cleanup.js.
function checkItemsRestored | ( | ) |
Definition at line 302 of file test_media_item_controller_cleanup.js.
function EnumeratorCounter | ( | aList, | |
aFilter, | |||
aCheck | |||
) |
Counts the number of mediaitems in a medialist that match a set of properties
aList | the list to act on |
aFilter | an array of [prop, val] pairs to filter by |
aCheck | an array of [prop, val] that must be true for each item |
Definition at line 84 of file test_media_item_controller_cleanup.js.
Components utils import | ( | "resource://gre/modules/XPCOMUtils.jsm" | ) |
The tests the media item controller hiding code.
function runTest | ( | ) |
Advanced DataRemote unit tests.
Minimal sanity check for the AddonMetadata Datasource. Assumes that coppery will be installed.
BEGIN SONGBIRD GPL
This file is part of the Songbird web player.
Copyright(c) 2005-2008 POTI, Inc. http://songbirdnest.com
This file may be licensed under the terms of of the GNU General Public License Version 2 (the "GPL").
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the GPL for the specific language governing rights and limitations.
You should have received a copy of the GPL along with this program. If not, go to http://www.gnu.org/licenses/gpl.html or write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
END SONGBIRD GPL Initial file to test testharness architecture. Ultimately this file would hold more advanced unit tests.
Advanced DataRemote unit tests.
BEGIN SONGBIRD GPL
This file is part of the Songbird web player.
Copyright(c) 2005-2008 POTI, Inc. http://songbirdnest.com
This file may be licensed under the terms of of the GNU General Public License Version 2 (the "GPL").
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the GPL for the specific language governing rights and limitations.
You should have received a copy of the GPL along with this program. If not, go to http://www.gnu.org/licenses/gpl.html or write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
END SONGBIRD GPL
Advanced DataRemote unit tests.
Definition at line 45 of file test_media_item_controller_cleanup.js.
function setupForItemHidden | ( | ) |
Definition at line 135 of file test_media_item_controller_cleanup.js.
function setupForItemRestored | ( | ) |
Definition at line 234 of file test_media_item_controller_cleanup.js.
var gCount = {} |
Definition at line 43 of file test_media_item_controller_cleanup.js.
var gLibrary = null |
Definition at line 42 of file test_media_item_controller_cleanup.js.
const K_COMPLETE_TOPIC = "songbird-media-item-controller-cleanup-complete" |
Definition at line 36 of file test_media_item_controller_cleanup.js.
const K_HIDDEN_PROP = SBProperties.base + "libraryItemControllerTypeDisappeared" |
Definition at line 40 of file test_media_item_controller_cleanup.js.
const K_IDLE_TOPIC = "songbird-media-item-controller-cleanup-idle" |
Definition at line 37 of file test_media_item_controller_cleanup.js.
const K_SEEN_PROP = SBProperties.base + "libraryItemControllerLastSeenTypes" |
Definition at line 39 of file test_media_item_controller_cleanup.js.
const K_TOTAL_ITEMS = 200 |
Definition at line 38 of file test_media_item_controller_cleanup.js.
const K_TRACKTYPE_ADDED = "TEST_MEDIA_ITEM_CONTROLLER_ADDED" |
Definition at line 34 of file test_media_item_controller_cleanup.js.
const K_TRACKTYPE_REMOVED = "TEST_MEDIA_ITEM_CONTROLLER_REMOVED" |
Definition at line 33 of file test_media_item_controller_cleanup.js.
const K_TRACKTYPE_SEPARATOR = '\x7F' |
Definition at line 35 of file test_media_item_controller_cleanup.js.