Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: Tools/GardeningServer/ui/test/ct-revision-details-tests.html

Issue 555263004: Add hung bots to sheriff-o-matic view (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address nits. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Tools/GardeningServer/ui/ct-unexpected-failures.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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-revision-details.html">
8
9 <link rel="import" href="../../model/ct-builder-revisions-mock.html">
10 <link rel="import" href="../../model/ct-commit-log-mock.html">
11
12 <script>
13 (function () {
14
15 var assert = chai.assert;
16
17 describe('ct-revision-details', function() {
18 var revisionDetails;
19
20 describe('empty', function() {
21 before(function(done) {
22 revisionDetails = document.createElement('ct-revision-details');
23 setTimeout(done);
24 });
25
26 it('should not show revision', function() {
27 assert.isNull(revisionDetails.shadowRoot.querySelector('#fullyProcessedRev ision'));
28 assert.isNull(revisionDetails.shadowRoot.querySelector('#trunkRevision'));
29 });
30 });
31
32 describe('blink revision', function() {
33 before(function(done) {
34 revisionDetails = document.createElement('ct-revision-details');
35
36 var builderRevisions = new CTBuilderRevisionsMock();
37 var commitLog = new CTCommitLogMock();
38 commitLog._updateLastRevision('blink');
39
40 revisionDetails.builderLatestRevisions = builderRevisions;
41 revisionDetails.tree = 'blink';
42 revisionDetails.commitLog = commitLog;
43
44 setTimeout(done);
45 });
46
47 it('should show the revision', function() {
48 assert.equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevi sion').innerText, '158543');
49 assert.equal(revisionDetails.shadowRoot.querySelector('#trunkRevision').in nerText, '158545');
50 });
51 });
52 });
53
54 })();
55 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-unexpected-failures.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698