Go to the source code of this file.
Functions | |
Components utils | import ("resource://app/jsmodules/ArrayConverter.jsm") |
Test the directory importer service. More... | |
getService (Ci.sbIDirectoryImportService) | |
function | runTest () |
Advanced DataRemote unit tests. More... | |
function | onFirstImportProgress (job) |
function | startSecondImport () |
function | onSecondImportProgress (job) |
Variables | |
var | gDirectories = ArrayConverter.nsIArray([newAppRelativeFile("testharness/metadatamanager/files/")]) |
var | gDirectoryImporter = Cc['@songbirdnest.com/Songbird/DirectoryImportService |
var | gLibrary |
var | gMediaList |
const | MEDIALIST_TARGET_INDEX = 1 |
getService | ( | Ci. | sbIDirectoryImportService | ) |
Definition at line 4 of file browser_sanitize-passwordDisabledHosts.js.
Components utils import | ( | "resource://app/jsmodules/ArrayConverter.jsm" | ) |
Test the directory importer service.
function onFirstImportProgress | ( | job | ) |
Once the first directory import completes, confirm that we found some files, and that at least some of them have expected metadata
Definition at line 68 of file test_directoryimport.js.
function onSecondImportProgress | ( | job | ) |
Once the second directory import completes, confirm that the files were inserted into the list as expected, and that the items were reported as dupes in the library
Definition at line 138 of file test_directoryimport.js.
function runTest | ( | ) |
Advanced DataRemote unit tests.
Start by creating a library and doing a directory import of the metadata unit test files.
Definition at line 49 of file test_directoryimport.js.
function startSecondImport | ( | ) |
Now test directory import into a media list.
Definition at line 118 of file test_directoryimport.js.
var gDirectories = ArrayConverter.nsIArray([newAppRelativeFile("testharness/metadatamanager/files/")]) |
Definition at line 36 of file test_directoryimport.js.
var gDirectoryImporter = Cc['@songbirdnest.com/Songbird/DirectoryImportService |
Definition at line 38 of file test_directoryimport.js.
var gLibrary |
Definition at line 40 of file test_directoryimport.js.
var gMediaList |
Definition at line 41 of file test_directoryimport.js.
const MEDIALIST_TARGET_INDEX = 1 |
Definition at line 43 of file test_directoryimport.js.