Name Description Size
data
db
head.js Create and populate a database using data from an external file. @param {string} path - Relative path to the external file. 5561
test_delete.js Tests the removal of folders from the database. 1809
test_findFolders.js Tests that folders on the filesystem are detected and added to the database on start-up. TODO: Test the same thing, but with an existing database that does/doesn't match the file system. 4223
test_flags.js Tests the hierarchical attributes and functions of folders. 2243
test_insert.js Tests the insertion of folders into the database. 3057
test_liveView.js 13321
test_liveViewDataAdapter.js This is a series of tests to prove that LiveViewDataAdapter has correctly cached messages from the LiveView. We create a list of the message IDs in the adapter's cache (in `listStorage`) and compare it to a known list of IDs. Empty slots in the cache are `undefined` in the list of expected IDs (usually expanded from a new Array to avoid writing out `undefined` many times over). The messages are from data/messages.sql. There are 10 initially. 15701
test_lookup.js Tests looking up folders by path. 2960
test_messageIngestion.js Tests that message headers are correctly decoded and normalised before entering the database. 4357
test_messages.js Just a stub test to prove that the messages database works. 3077
test_move.js Tests moving folders around within the data structure. This involves updating the hierarchy and changing some values in the database, so we check both are updated after each move. 10509
test_msgFolders.js Tests that getFolderForMsgFolder and getMsgFolderForFolder work. 2522
test_perFolderDatabase.js Tests the new database's implemention of the old database's interfaces. 17996
test_reconcile.js Tests the reconciliation between folders in the database and a given list of folders. Folders in the list but not the database should be added, folders not in the list should be removed. 1715
test_relations.js Tests the hierarchical attributes and functions of folders. 5644
test_serverFromPrefs.js Tests that a local account, server, and identity defined in preferences are correctly set up. This is much like test_localServerFromPrefs.js except that the folders already exist in the database when the account manager starts. 3577
test_setFolderName.js Tests that changing the name of a folder results in it being stored correctly in the database. 2769
test_sort.js Tests that folders are read from the database and inserted as children of their parents in the right order. Folders with an ordinal are sorted ahead of folders without an ordinal. Otherwise, folders are sorted by name, in a case-insensitive and locale-aware manner. 5036
test_sqlFunctions.js 4244
test_summaryFileMigration.js Tests migrating the messages from a summary file into the new database. 2448
test_threads.js Tests the Thread and ThreadEnumerator classes, and the functions which create them. 4743
test_virtualFolderMigration.js Tests migrating virtualFolders.dat into the new database. 5106
xpcshell.toml 740