test_mediacoremanager.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://gre/modules/XPCOMUtils.jsm")
 Test file. More...
 
function runTest ()
 Advanced DataRemote unit tests. More...
 
function testListener ()
 
function dummyMediacore ()
 

Variables

testListener prototype
 

Function Documentation

function dummyMediacore ( )

Definition at line 159 of file test_mediacoremanager.js.

Components utils import ( "resource://gre/modules/XPCOMUtils.jsm"  )

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

Definition at line 36 of file test_mediacoremanager.js.

Here is the call graph for this function:

function testListener ( )

Event Target functionality testing

Definition at line 134 of file test_mediacoremanager.js.

Here is the call graph for this function:

Variable Documentation

testListener prototype
Initial value:
= {
QueryInterface: XPCOMUtils.generateQI([Ci.sbIMediacoreEventListener]),
onMediacoreEvent: function(event) {
this.log.push(event);
}
}
var eventIDs = [Ci.sbIMediacoreEvent.METADATA_CHANGE,
Ci.sbIMediacoreEvent.URI_CHANGE,
Ci.sbIMediacoreEvent.DURATION_CHANGE,
Ci.sbIMediacoreEvent.VOLUME_CHANGE,
Ci.sbIMediacoreEvent.MUTE_CHANGE,
Ci.sbIMediacoreEvent.STREAM_FOUND,
Ci.sbIMediacoreEvent.BUFFERING,
Ci.sbIMediacoreEvent.BUFFER_UNDERRUN,
Ci.sbIMediacoreEvent.STREAM_START,
Ci.sbIMediacoreEvent.STREAM_PAUSE,
Ci.sbIMediacoreEvent.STREAM_END]
function log(s)
var event
sbOSDControlService prototype QueryInterface
const Ci

Definition at line 139 of file test_mediacoremanager.js.