test_metadatajob_mpeg4_writing.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://app/jsmodules/ArrayConverter.jsm")
 
function getFileData (aFileName)
 
function runTest ()
 Advanced DataRemote unit tests. More...
 
function onReadComplete (job)
 
function onWriteComplete (job)
 
function importFilesToLibrary (files, library)
 
function startMetadataJob (items, type, writeProperties)
 

Variables

var gTestFileLocation = "testharness/metadatamanager/files/"
 Test creation and execution of metadata writing jobs. More...
 
var gTestLibrary = createNewLibrary( "test_metadata_mpeg4" )
 
var gTestMediaItems
 
var gTestFolder
 
var gFileMetadataService
 
const gTestCases
 

Function Documentation

function getFileData (   aFileName)

Definition at line 47 of file test_metadatajob_mpeg4_writing.js.

Here is the caller graph for this function:

Components utils import ( "resource://app/jsmodules/ArrayConverter.jsm"  )
function importFilesToLibrary (   files,
  library 
)

Add files to a library, returning media items

Definition at line 214 of file test_metadatajob_mpeg4_writing.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function onReadComplete (   job)

Definition at line 160 of file test_metadatajob_mpeg4_writing.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function onWriteComplete (   job)

Definition at line 187 of file test_metadatajob_mpeg4_writing.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function runTest ( )

Advanced DataRemote unit tests.

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

Definition at line 119 of file test_metadatajob_mpeg4_writing.js.

Here is the call graph for this function:

function startMetadataJob (   items,
  type,
  writeProperties 
)

Get a metadata job for the given items

Definition at line 231 of file test_metadatajob_mpeg4_writing.js.

Here is the caller graph for this function:

Variable Documentation

var gFileMetadataService
Initial value:
= Cc["@songbirdnest.com/Songbird/MetadataManager;1"]
.getService(Ci.sbIMetadataManager)
const Cc
const Ci

Definition at line 38 of file test_metadatajob_mpeg4_writing.js.

const gTestCases

Definition at line 66 of file test_metadatajob_mpeg4_writing.js.

var gTestFileLocation = "testharness/metadatamanager/files/"

Test creation and execution of metadata writing jobs.

Definition at line 31 of file test_metadatajob_mpeg4_writing.js.

var gTestFolder

Definition at line 36 of file test_metadatajob_mpeg4_writing.js.

var gTestLibrary = createNewLibrary( "test_metadata_mpeg4" )

Definition at line 32 of file test_metadatajob_mpeg4_writing.js.

var gTestMediaItems
Initial value:
= Cc["@songbirdnest.com/moz/xpcom/threadsafe-array;1"]
.createInstance(Ci.nsIMutableArray)
const Cc
const Ci

Definition at line 33 of file test_metadatajob_mpeg4_writing.js.