db |
|
|
head.js |
Add a new message to the database. See the other messages in db/messages.sql
for appropriate values.
@param {object} message - Details of the new message to add.
@param {integer} [message.folderId=1]
@param {string} [message.messageId="messageId"]
@param {string} [message.date="2025-01-22"] - Any string which can be
parsed by the Date constructor.
@param {string} [message.sender="sender"]
@param {string} [message.subject="subject"]
@param {integer} [message.flags=0]
@param {string} [message.tags=""]
@returns {integer} - The database ID of the new message.
|
3120 |
test_delete.js |
Tests the removal of folders from the database.
|
1801 |
test_findFolders.js |
Tests that folders on the filesystem are detected and added to the database
on start-up.
|
3177 |
test_flags.js |
Tests the hierarchical attributes and functions of folders.
|
2235 |
test_insert.js |
Tests the insertion of folders into the database.
|
3049 |
test_liveView.js |
|
10155 |
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.
|
14390 |
test_lookup.js |
Tests looking up folders by path.
|
2638 |
test_messages.js |
Just a stub test to prove that the messages database works.
|
830 |
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.
|
10145 |
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.
|
1307 |
test_relations.js |
Tests the hierarchical attributes and functions of folders.
|
5636 |
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.
|
1895 |
test_sqlFunctions.js |
|
4346 |
xpcshell.toml |
|
619 |