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-commit-list.html'> | 7 <link rel='import' href='ct-commit-list.html'> |
8 | 8 |
9 <link rel='import' href='ct-commit-log-mock.html'> | 9 <link rel='import' href='ct-commit-log-mock.html'> |
10 | 10 |
11 <script> | 11 <script> |
12 (function () { | 12 (function () { |
13 | 13 |
14 window.CTCommitListMock = function() { | 14 window.CTCommitListMock = function() { |
15 var group = { | 15 var revisions = ['blink:158544', 'blink:158545']; |
16 failures: [ | 16 return new CTCommitList(new CTCommitLogMock(), revisions); |
17 { | |
18 firstFailingRevisions: { | |
19 'blink': 158545 | |
20 }, | |
21 lastPassingRevisions: { | |
22 'blink': 158544 | |
23 } | |
24 } | |
25 ] | |
26 }; | |
27 return new CTCommitList(group, new CTCommitLogMock()); | |
28 }; | 17 }; |
29 | 18 |
30 })(); | 19 })(); |
31 </script> | 20 </script> |
OLD | NEW |