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. 5650
test_delete.js Tests the removal of folders from the database. 1784
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. 4516
test_flags.js Tests the hierarchical attributes and functions of folders. 1112
test_insert.js Tests the insertion of folders into the database. 3692
test_liveView.js Tests live views are initialised correctly and find the right messages. 14806
test_liveView_conversations.js Tests live views are initialised correctly and find the right messages, when we're dealing with conversations. This is a separate test file because it uses different database content. 3748
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. 5282
test_lookup.js Tests looking up folders by path. 4498
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. 4077
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. 10792
test_msgFolders.js Test that getMsgFolderForFolder() works. 2640
test_perFolderDatabase.js Tests the new database's implementation of the old database's interfaces. 18041
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. 1717
test_relations.js Tests the hierarchical attributes and functions of folders. 4165
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. 3600
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. 4593
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. 5110
xpcshell.toml 827