-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed label, added tests for UnreadButton
- Loading branch information
Anton Neubauer
committed
May 22, 2022
1 parent
b4d80d1
commit 8479a74
Showing
5 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/IMAPClient-Tests.package/ICFolderTest.class/instance/testUnreadButton.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sort/filter | ||
testUnreadButton | ||
|
||
| dialog | | ||
|
||
dialog := ICFolderDialog new. | ||
|
||
self assert: dialog showUnread equals: false. | ||
|
||
dialog filterEmailsUnread. | ||
|
||
self assert: dialog showUnread equals: true. | ||
|
22 changes: 22 additions & 0 deletions
22
...ages/IMAPClient-Tests.package/ICFolderTest.class/instance/testUnreadButtonEmailVisible.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
sort/filter | ||
testUnreadButtonEmailVisible | ||
|
||
|
||
| dialog email | | ||
|
||
dialog := ICFolderDialog new. | ||
email := (ICEmail new) | ||
uniqueID: self uniqueIds first; | ||
folder: self root; | ||
date: self class date; | ||
seen: false. | ||
|
||
self assert: (dialog shouldEmailBeVisible: email) equals: true. | ||
|
||
dialog filterEmailsUnread. | ||
|
||
self assert: (dialog shouldEmailBeVisible: email) equals: true. | ||
|
||
email seen: true. | ||
self assert: (dialog shouldEmailBeVisible: email) equals: false. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ filterButtonLabelUnread | |
|
||
self showUnread | ||
ifTrue: [^ 'Unread'] | ||
ifFalse: [^ 'Read'] | ||
ifFalse: [^ 'All'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters