test_mediaitem.js File Reference

Go to the source code of this file.

Functions

function read_stream (stream, count)
 
function newTempURI (name)
 
function createItem (library, url)
 
function testGet (item, attrib, value)
 
function testSet (item, attrib, value)
 
function testAvailable (library, url, available, completion)
 
function testIsURIAvailable (ioItem)
 
function testAsyncRead (ioItem)
 
function runTest ()
 Advanced DataRemote unit tests. More...
 

Variables

var TEST_STRING
 Test file. More...
 
var gServer
 

Function Documentation

function createItem (   library,
  url 
)

Definition at line 70 of file test_mediaitem.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function newTempURI (   name)

Definition at line 56 of file test_mediaitem.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function read_stream (   stream,
  count 
)

Definition at line 36 of file test_mediaitem.js.

Here is the caller graph for this function:

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.

Definition at line 188 of file test_mediaitem.js.

Here is the call graph for this function:

function testAsyncRead (   ioItem)

See nsIStreamListener.idl

See nsIRequestObserver.idl

See nsIRequestObserver.idl

See nsISupports.idl

Definition at line 141 of file test_mediaitem.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function testAvailable (   library,
  url,
  available,
  completion 
)

Definition at line 90 of file test_mediaitem.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function testGet (   item,
  attrib,
  value 
)

Definition at line 74 of file test_mediaitem.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function testIsURIAvailable (   ioItem)

Definition at line 126 of file test_mediaitem.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function testSet (   item,
  attrib,
  value 
)

Definition at line 84 of file test_mediaitem.js.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

var gServer

Definition at line 34 of file test_mediaitem.js.

var TEST_STRING
Initial value:
= "The quick brown fox jumps over the lazy dog. Bitches."
function getTestServerPortNumber()

Test file.

Definition at line 31 of file test_mediaitem.js.