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

Unified Diff: Tools/GardeningServer/ui/test/ct-failure-stream-tests.html

Issue 476903004: [sheriff-o-matic]: Basic trooper display for sheriff-o-matic. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/ui/test/ct-failure-stream-tests.html
diff --git a/Tools/GardeningServer/ui/test/ct-failure-stream-tests.html b/Tools/GardeningServer/ui/test/ct-failure-stream-tests.html
index 3e9096c112835e6d122b0a4dfcb43f8b07aea8ed..fe04a174a60acf4d3dfa2d23466447010fc3b43e 100644
--- a/Tools/GardeningServer/ui/test/ct-failure-stream-tests.html
+++ b/Tools/GardeningServer/ui/test/ct-failure-stream-tests.html
@@ -26,8 +26,8 @@ describe('ct-failure-stream', function() {
// ct-failure-stream will give these values to ct-commit-data,
// which will hit the network unless we figure out how to mock
// out ct-commit-data in a better way.
- stream.groups = [new CTFailureGroup('', [], undefined),
- new CTFailureGroup('', [], undefined)];
+ stream.groups = [new CTFailureGroup('', new CTSheriffFailureGroupData([])),
+ new CTFailureGroup('', new CTSheriffFailureGroupData([]))];
stream.category = 'default';
setTimeout(function() {
var cards = stream.shadowRoot.querySelectorAll('ct-failure-card');
@@ -40,8 +40,8 @@ describe('ct-failure-stream', function() {
describe('category', function() {
it('should only show failure groups for the specified category', function(done) {
var failures = [new CTFailure('step', 'reason', [{key: 'a', annotation: {snoozeTime: Date.now() + 1000 * 1000}}])];
- var snoozed = new CTFailureGroup('', failures, undefined);
- stream.groups = [new CTFailureGroup('', [], undefined), snoozed];
+ var snoozed = new CTFailureGroup('', new CTSheriffFailureGroupData(failures));
+ stream.groups = [new CTFailureGroup('', new CTSheriffFailureGroupData([])), snoozed];
stream.category = 'snoozed';
setTimeout(function() {
var cards = stream.shadowRoot.querySelectorAll('ct-failure-card');
« no previous file with comments | « Tools/GardeningServer/ui/test/ct-failure-card-tests.html ('k') | Tools/GardeningServer/ui/test/ct-tree-status-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698