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 getFileData | ( | aFileName | ) |
Definition at line 47 of file test_metadatajob_mpeg4_writing.js.
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.
function onReadComplete | ( | job | ) |
Definition at line 160 of file test_metadatajob_mpeg4_writing.js.
function onWriteComplete | ( | job | ) |
Definition at line 187 of file test_metadatajob_mpeg4_writing.js.
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.
function startMetadataJob | ( | items, | |
type, | |||
writeProperties | |||
) |
Get a metadata job for the given items
Definition at line 231 of file test_metadatajob_mpeg4_writing.js.
var gFileMetadataService |
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 |
Definition at line 33 of file test_metadatajob_mpeg4_writing.js.