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. 5594
test_delete.js Tests the removal of folders from the database. 1830
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. 4230
test_flags.js Tests the hierarchical attributes and functions of folders. 2264
test_insert.js Tests the insertion of folders into the database. 3068
test_liveView.js Tests live views are initialised correctly and find the right messages. 14293
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. 15709
test_liveViewSQL.js Tests that live views use the correct SQL clauses and parameters. 5285
test_lookup.js Tests looking up folders by path. 2985
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. 3542
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. 10566
test_msgFolders.js Tests that getFolderForMsgFolder and getMsgFolderForFolder work. 2537
test_perFolderDatabase.js Tests the new database's implemention of the old database's interfaces. 18039
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. 1724
test_relations.js Tests the hierarchical attributes and functions of folders. 5655
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. 3588
test_setFolderName.js Tests that changing the name of a folder results in it being stored correctly in the database. 2793
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. 5069
test_sqlFunctions.js 4268
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. 5128
xpcshell.toml 765