| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 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 | |
| 4 found in the LICENSE file. | |
| 5 --> | |
| 6 | |
| 7 <link rel="import" href="../ct-commit-list.html"> | |
| 8 | |
| 9 <script> | |
| 10 (function () { | |
| 11 | |
| 12 var assert = chai.assert; | |
| 13 | |
| 14 describe('ct-commit-list', function() { | |
| 15 describe('commit list Model', function() { | |
| 16 it('returns commits', function() { | |
| 17 var revisions = ['blink:158545']; | |
| 18 var cl = new CTCommitList(new CTCommitLogMock(), revisions); | |
| 19 assert.lengthOf(cl.repositories, 1); | |
| 20 }); | |
| 21 | |
| 22 it ('returns repositories', function() { | |
| 23 var revisions = ['blink:158545']; | |
| 24 var cl = new CTCommitList(new CTCommitLogMock(), revisions); | |
| 25 var repos = cl.repositories; | |
| 26 assert.lengthOf(repos, 1); | |
| 27 assert.equal(repos[0].name, 'blink'); | |
| 28 assert.lengthOf(repos[0].commits, 1); | |
| 29 assert.equal(repos[0].range, '158545 : 158545') | |
| 30 }); | |
| 31 }); | |
| 32 }); | |
| 33 | |
| 34 })(); | |
| 35 </script> | |
| OLD | NEW |