Go to the source code of this file.
Functions | |
function | runTest () |
Advanced DataRemote unit tests. More... | |
function | onComplete (job) |
function | jobFinished () |
Variables | |
var | gFileLocation = "testharness/metadatamanager/files/" |
Test reading from various media formats. More... | |
var | PORT_NUMBER = getTestServerPortNumber() |
var | gRemoteURLPrefix = "http://localhost:" + PORT_NUMBER + "/" |
var | gDefaultMetadata = {} |
var | gFiles = {} |
var | gLocalMediaItems = [] |
var | gRemoteMediaItems = [] |
var | gFileList = [] |
var | gFileMetadataService = null |
var | gServer |
function jobFinished | ( | ) |
Definition at line 154 of file test_metadatajob_reading.js.
function onComplete | ( | job | ) |
Definition at line 144 of file test_metadatajob_reading.js.
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
Confirm that Songbird doesn't crash or damage files when metadata jobs fail
Copy some media files into a temp directory, then confirm that metadata properties can be modified using a write job.
Ensure metadata.enableWriting pref can prevent writing.
Definition at line 78 of file test_metadatajob_reading.js.
gDefaultMetadata[SBProperties.trackName] = {} |
Definition at line 36 of file test_metadatajob_reading.js.
var gFileList = [] |
Definition at line 72 of file test_metadatajob_reading.js.
var gFileLocation = "testharness/metadatamanager/files/" |
Test reading from various media formats.
Definition at line 31 of file test_metadatajob_reading.js.
var gFileMetadataService = null |
Definition at line 74 of file test_metadatajob_reading.js.
gFiles["MP3_ID3v1_Shift_JIS.mp3"][SBProperties.albumName] = {} |
Definition at line 42 of file test_metadatajob_reading.js.
var gLocalMediaItems = [] |
Definition at line 70 of file test_metadatajob_reading.js.
var gRemoteMediaItems = [] |
Definition at line 71 of file test_metadatajob_reading.js.
var gRemoteURLPrefix = "http://localhost:" + PORT_NUMBER + "/" |
Definition at line 34 of file test_metadatajob_reading.js.
var gServer |
Definition at line 76 of file test_metadatajob_reading.js.
var PORT_NUMBER = getTestServerPortNumber() |
Definition at line 33 of file test_metadatajob_reading.js.