test_playlist_candrop.js File Reference

Go to the source code of this file.

Functions

Cu import ("resource://app/jsmodules/DropHelper.jsm")
 
function runTest ()
 Advanced DataRemote unit tests. More...
 
function setup ()
 
function test_canDrop (aLibraryPlaylist, aListPlaylist, aPlayQueuePlaylist)
 

Variables

const Cu = Components.utils
 
var XUL_NS
 
const K_DROPONLIBRARY_TESTS
 
const K_DROPONLIST_TESTS
 
const K_DROPINDICATOR_TESTS
 
const K_DROPONPLAYQUEUE_TESTS
 

Function Documentation

Cu import ( "resource://app/jsmodules/DropHelper.jsm"  )
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.

Run the unit tests.

Tests single thread synchronous and asynchronous events

Confirm that Songbird doesn't crash or damage files when metadata jobs fail

Copy some media files into a temp directory, then confirm that metadata properties can be modified using a write job.

Ensure metadata.enableWriting pref can prevent writing.

Start by creating a library and doing a directory import of the metadata unit test files.

test the localizationKey attribute on sbIPropertyInfo on registered properties

Test WatchFolder's ability to correctly handle moved and renamed files without deleting and re-adding.

This test is not bundled with the XPI. When you build in debug mode this test will be copied in to the compiled/dist/testharness/ directory, and the extension will be installed to compiled/dist/extensions/.

To run this unit test, execute: ./Songbird.exe -test xpcom_helloworld

Listener used to track the events

Listener used to track the events

Definition at line 41 of file test_playlist_candrop.js.

Here is the call graph for this function:

function setup ( )

Definition at line 50 of file test_playlist_candrop.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function test_canDrop (   aLibraryPlaylist,
  aListPlaylist,
  aPlayQueuePlaylist 
)

Definition at line 76 of file test_playlist_candrop.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const Cu = Components.utils

This file tests interactions with the canDrop and canDrop methods on the playlist binding. The logic for determining drop acceptance is complex, and these tests stub various function calls to ensure the logic is executed correctly. The stubbed function calls themselves are _not tested here.

Definition at line 33 of file test_playlist_candrop.js.

const K_DROPINDICATOR_TESTS

Definition at line 401 of file test_playlist_candrop.js.

const K_DROPONLIBRARY_TESTS

Definition at line 99 of file test_playlist_candrop.js.

const K_DROPONLIST_TESTS

Definition at line 333 of file test_playlist_candrop.js.

const K_DROPONPLAYQUEUE_TESTS

Definition at line 449 of file test_playlist_candrop.js.

var XUL_NS
Initial value:
= XUL_NS ||
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
var XUL_NS

Definition at line 35 of file test_playlist_candrop.js.