Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Unified Diff: Tools/GardeningServer/model/test/ct-failure-group-tests.html

Issue 455263002: Sheriff-o-matic: Display snoozed failure groups in a separate stream (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/model/test/ct-failure-group-tests.html
diff --git a/Tools/GardeningServer/model/test/ct-failure-group-tests.html b/Tools/GardeningServer/model/test/ct-failure-group-tests.html
index 7b6cdd533d9d60cfe0e4ee7ea530bdd1e9e7d83a..79cd0cbf1990018ea08f08453d9ce11ced3fd0f3 100644
--- a/Tools/GardeningServer/model/test/ct-failure-group-tests.html
+++ b/Tools/GardeningServer/model/test/ct-failure-group-tests.html
@@ -17,6 +17,18 @@ describe('ct-failure-group', function() {
localStorage.removeItem('CTFailureGroupAnnotations');
});
+ describe('category', function() {
+ it('should be "default" by default', function() {
+ var group = new CTFailureGroup('key', []);
+ assert.equal(group.category, 'default');
+ });
+
+ it('should be "snoozed" when snoozed', function() {
+ var group = new CTFailureGroup('key', [], {snoozeTime: Date.now() + 1000 * 1000});
+ assert.equal(group.category, 'snoozed');
+ });
+ });
+
describe('snooze', function() {
it('should set isSnoozed', function(done) {
var group = new CTFailureGroup('key', []);

Powered by Google App Engine
This is Rietveld 408576698