Make it possible to distinguish between different folder roots

Add a label to Geary.FolderRoot so it different instances can be
differenciated.
This commit is contained in:
Michael Gratton 2019-04-14 20:55:42 +10:00 committed by Michael James Gratton
parent dd3a7a1bc8
commit 01a154bc5f
11 changed files with 109 additions and 36 deletions

View file

@ -60,7 +60,7 @@ class Geary.Imap.MailboxSpecifierTest : TestCase {
}
public void from_folder_path() throws Error {
FolderRoot root = new FolderRoot();
FolderRoot root = new FolderRoot("#test");
MailboxSpecifier inbox = new MailboxSpecifier("Inbox");
assert_string(
"Foo",
@ -110,7 +110,7 @@ class Geary.Imap.MailboxSpecifierTest : TestCase {
}
public void folder_path_is_inbox() throws GLib.Error {
FolderRoot root = new FolderRoot();
FolderRoot root = new FolderRoot("#test");
assert_true(
MailboxSpecifier.folder_path_is_inbox(root.get_child("Inbox"))
);