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-revision-details.html"> | 7 <link rel="import" href="../ct-revision-details.html"> |
8 | 8 |
9 <link rel="import" href="../../model/ct-builder-revisions-mock.html"> | 9 <link rel="import" href="../../model/ct-builder-revisions-mock.html"> |
10 <link rel="import" href="../../model/ct-commit-log-mock.html"> | 10 <link rel="import" href="../../model/ct-commit-log-mock.html"> |
(...skipping 21 matching lines...) Expand all Loading... |
32 describe('blink revision', function() { | 32 describe('blink revision', function() { |
33 before(function(done) { | 33 before(function(done) { |
34 revisionDetails = document.createElement('ct-revision-details'); | 34 revisionDetails = document.createElement('ct-revision-details'); |
35 | 35 |
36 var builderRevisions = CTBuilderRevisionsMock(); | 36 var builderRevisions = CTBuilderRevisionsMock(); |
37 var commitLog = CTCommitLogMock(); | 37 var commitLog = CTCommitLogMock(); |
38 commitLog._findFirstAndLastRevisions('blink'); | 38 commitLog._findFirstAndLastRevisions('blink'); |
39 | 39 |
40 revisionDetails.builderLatestRevisions = builderRevisions; | 40 revisionDetails.builderLatestRevisions = builderRevisions; |
41 revisionDetails.tree = 'blink'; | 41 revisionDetails.tree = 'blink'; |
42 revisionDetails.revisionLog = commitLog; | 42 revisionDetails.commitLog = commitLog; |
43 | 43 |
44 setTimeout(done); | 44 setTimeout(done); |
45 }); | 45 }); |
46 | 46 |
47 it('should show the revision', function() { | 47 it('should show the revision', function() { |
48 assert.equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevi
sion').innerText, '158543'); | 48 assert.equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevi
sion').innerText, '158543'); |
49 assert.equal(revisionDetails.shadowRoot.querySelector('#trunkRevision').in
nerText, '158545'); | 49 assert.equal(revisionDetails.shadowRoot.querySelector('#trunkRevision').in
nerText, '158545'); |
50 }); | 50 }); |
51 }); | 51 }); |
52 }); | 52 }); |
53 | 53 |
54 })(); | 54 })(); |
55 </script> | 55 </script> |
OLD | NEW |