OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. | 4 found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <link rel="import" href="../ct-failure-card.html"> | 7 <link rel="import" href="../ct-failure-card.html"> |
8 | 8 |
9 <link rel="import" href="../../model/ct-commit-list-mock.html"> | 9 <link rel="import" href="../../model/ct-commit-list-mock.html"> |
10 <link rel="import" href="../../model/ct-commit-log-mock.html"> | 10 <link rel="import" href="../../model/ct-commit-log-mock.html"> |
11 <link rel="import" href="../../model/ct-failure-group.html"> | 11 <link rel="import" href="../../model/ct-failure-group.html"> |
12 | 12 |
13 <script> | 13 <script> |
14 (function () { | 14 (function () { |
15 | 15 |
16 var assert = chai.assert; | 16 var assert = chai.assert; |
17 | 17 |
18 describe('ct-failure-card', function() { | 18 describe('ct-failure-card', function() { |
19 var group; | 19 var group; |
20 var card; | 20 var card; |
21 var failures; | 21 var failures; |
22 | 22 |
23 beforeEach(function(done) { | 23 beforeEach(function(done) { |
24 card = document.createElement('ct-failure-card'); | 24 card = document.createElement('ct-failure-card'); |
25 var cl = new CTCommitListMock(); | 25 var cl = new CTCommitListMock(); |
26 group = new CTFailureGroup([ | 26 group = new CTFailureGroup('', [ |
27 new CTFailure('autobot', 'unknown', {someBuilder: {key: 'a'}}, {'blink':
158547}, | 27 new CTFailure('autobot', 'unknown', {someBuilder: {key: 'a'}}, {'blink':
158547}, |
28 {'blink':158544})], cl); | 28 {'blink':158544})], cl); |
29 card.group = group; | 29 card.group = group; |
30 card.commitLog = new CTCommitLogMock(); | 30 card.commitLog = new CTCommitLogMock(); |
31 setTimeout(done); | 31 setTimeout(done); |
32 }); | 32 }); |
33 | 33 |
34 describe('failure card UI', function() { | 34 describe('failure card UI', function() { |
35 | 35 |
36 it('should have commit summaries', function(done) { | 36 it('should have commit summaries', function(done) { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 done(); | 130 done(); |
131 }); | 131 }); |
132 }); | 132 }); |
133 }); | 133 }); |
134 }); | 134 }); |
135 | 135 |
136 }); | 136 }); |
137 | 137 |
138 })() | 138 })() |
139 </script> | 139 </script> |
OLD | NEW |