test_mediapages.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://app/jsmodules/ArrayConverter.jsm")
 MediaPage Unit Test File. More...
 
function runTest ()
 Advanced DataRemote unit tests. More...
 
function testMediaPageManager ()
 
function createLibrary (databaseGuid, databaseLocation)
 

Variables

var pageMgr = null
 
const DEFAULTPAGE1
 
const URL1 = "http://fake/url1.xul"
 
const URL2 = "http://fake/url2.xul"
 
const URL3 = "http://fake/url3.xul"
 

Function Documentation

function createLibrary (   databaseGuid,
  databaseLocation 
)

Definition at line 312 of file test_mediapages.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Components utils import ( "resource://app/jsmodules/ArrayConverter.jsm"  )

MediaPage Unit Test File.

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.

Listener used to track the events

Listener used to track the events

Definition at line 36 of file test_mediapages.js.

Here is the call graph for this function:

function testMediaPageManager ( )

Definition at line 62 of file test_mediapages.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const DEFAULTPAGE1
Initial value:
= "chrome://songbird/content/mediapages/filtersPage.xul"
const DEFAULTPAGE2 = "chrome://songbird/content/mediapages/playlistPage.xul"
const EXTENSIONPAGE = "chrome://songbird-test-media-page/content/testMediaPage.xul"
const EXTENSIONPAGEDOWNLOADS = "chrome://songbird-test-media-page/content/testMediaPage.xul?downloads"
const EXTENSIONPAGELIBRARY = "chrome://songbird-test-media-page/content/testMediaPage.xul?library"
const EXTENSIONPAGEVIDEO = "chrome://songbird-test-media-page/content/testMediaPage.xul?video"
const BADURL = "http://non/registered/url.xul"

Definition at line 50 of file test_mediapages.js.

var pageMgr = null

Definition at line 34 of file test_mediapages.js.

const URL1 = "http://fake/url1.xul"

Definition at line 58 of file test_mediapages.js.

const URL2 = "http://fake/url2.xul"

Definition at line 59 of file test_mediapages.js.

const URL3 = "http://fake/url3.xul"

Definition at line 60 of file test_mediapages.js.