test_metadatajob_errorcases.js File Reference

Go to the source code of this file.

Functions

function retries (aHandlers)
 
function runTest ()
 Advanced DataRemote unit tests. More...
 
function importFilesToLibrary (files, library)
 
function startMetadataJob (items, type, writeProperties)
 

Variables

var gTestFileLocation = "testharness/metadatamanager/errorcases/"
 Test error handling in metadata jobs. More...
 
var gErrorExpected = 0
 
var gRetriesExpected = 0
 

Function Documentation

function importFilesToLibrary (   files,
  library 
)

Add files to a library, returning media items

Definition at line 381 of file test_metadatajob_errorcases.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function retries (   aHandlers)

Calculate how many retries are expected for a given set of metadata handlers

Parameters
aHandlersan array of handlers expected
Returns
The number of retries expected

Definition at line 42 of file test_metadatajob_errorcases.js.

Here is the caller graph for this function:

function runTest ( )

Advanced DataRemote unit tests.

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

Definition at line 62 of file test_metadatajob_errorcases.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 396 of file test_metadatajob_errorcases.js.

Here is the caller graph for this function:

Variable Documentation

var gErrorExpected = 0

Definition at line 33 of file test_metadatajob_errorcases.js.

var gRetriesExpected = 0

Definition at line 35 of file test_metadatajob_errorcases.js.

var gTestFileLocation = "testharness/metadatamanager/errorcases/"

Test error handling in metadata jobs.

Definition at line 30 of file test_metadatajob_errorcases.js.