-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore schedule as popup defaults when editing a message
- Loading branch information
1 parent
472dd63
commit f626041
Showing
12 changed files
with
302 additions
and
91 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
exports.init = function() { | ||
function popupDOMTest(headers, expected) { | ||
const result = SLStatic.parseHeadersForPopupUICache(headers); | ||
return (DeepCompare(result, expected) || | ||
`expected ${ObjToStr(expected)}", got "${ObjToStr(result)}"`); | ||
} | ||
|
||
SLTests.AddTest("popupCacheTest simple-norecur", popupDOMTest, [ | ||
{ | ||
'x-send-later-at': '2021-01-22T15:31', | ||
'x-send-later-recur': 'none' | ||
}, | ||
{ | ||
'send-datetime': "1/22/2021, 3:31 PM", | ||
'once': true, | ||
'minutely': false, | ||
'daily': false, | ||
'weekly': false, | ||
'monthly': false, | ||
'yearly': false, | ||
'function': false | ||
} | ||
]); | ||
|
||
SLTests.AddTest("popupDOMTest recur every 3 days", popupDOMTest, [ | ||
{ | ||
'x-send-later-at': 'Fri, 22 Jan 2021 15:31:00 -0800', | ||
'x-send-later-recur': 'daily / 3' | ||
}, | ||
{ | ||
'send-datetime': "1/22/2021, 3:31 PM", | ||
'once': false, | ||
'minutely': false, | ||
'daily': true, | ||
'weekly': false, | ||
'monthly': false, | ||
'yearly': false, | ||
'function': false, | ||
'recur-cancelonreply': false, | ||
'recur-multiplier': 3, | ||
'recur-function-args': "", | ||
'sendbetween': false, | ||
'sendon': false | ||
} | ||
]); | ||
|
||
SLTests.AddTest("popupDOMTest recur every other month on the second Friday", popupDOMTest, [ | ||
{ | ||
'x-send-later-at': 'Fri, 22 Jan 2021 15:31:00 -0800', | ||
'x-send-later-recur': 'monthly 6 2 / 2' | ||
}, | ||
{ | ||
'send-datetime': "1/22/2021, 3:31 PM", | ||
'once': false, | ||
'minutely': false, | ||
'daily': false, | ||
'weekly': false, | ||
'monthly': true, | ||
'yearly': false, | ||
'function': false, | ||
'recur-cancelonreply': false, | ||
'recur-multiplier': 2, | ||
'recur-function-args': "", | ||
'recur-monthly-byweek': true, | ||
'recur-monthly-byweek-day': "6", | ||
'recur-monthly-byweek-week': "2", | ||
'sendbetween': false, | ||
'sendon': 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
Oops, something went wrong.