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="../../model/ct-commit-list-mock.html"> | 9 <link rel="import" href="../../model/ct-commit-list-mock.html"> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 assert.lengthOf(commits, 0); | 32 assert.lengthOf(commits, 0); |
33 }); | 33 }); |
34 | 34 |
35 describe('expanded test', function() { | 35 describe('expanded test', function() { |
36 beforeEach(function(done) { | 36 beforeEach(function(done) { |
37 list.commitList.repositories.first().expanded = true; | 37 list.commitList.repositories.first().expanded = true; |
38 setTimeout(done); | 38 setTimeout(done); |
39 }); | 39 }); |
40 | 40 |
41 it('should show commit when expanded', function() { | 41 it('should show commit when expanded', function() { |
42 assert.lengthOf(list.shadowRoot.querySelectorAll('ct-commit'), 1); | 42 assert.lengthOf(list.shadowRoot.querySelectorAll('ct-commit'), 2); |
43 }); | 43 }); |
44 }); | 44 }); |
45 }); | 45 }); |
46 }); | 46 }); |
47 | 47 |
48 })() | 48 })() |
49 </script> | 49 </script> |
OLD | NEW |