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

Side by Side Diff: Tools/GardeningServer/ui/test/ct-failure-card-tests.html

Issue 526633002: Apply object updates from the network without blowing away object identity or UI attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Simplify and document updateLeft() using the fact that it returns the resulting object. 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
OLDNEW
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-failure-card.html"> 7 <link rel="import" href="../ct-failure-card.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 <link rel="import" href="../../model/ct-commit-log-mock.html"> 10 <link rel="import" href="../../model/ct-commit-log-mock.html">
11 <link rel="import" href="../../model/ct-failure-group.html"> 11 <link rel="import" href="../../model/ct-failure-group.html">
12 12
13 <script> 13 <script>
14 (function () { 14 (function () {
15 15
16 var assert = chai.assert; 16 var assert = chai.assert;
17 17
18 describe('ct-failure-card', function() { 18 describe('ct-failure-card', function() {
19 var group; 19 var group;
20 var card; 20 var card;
21 var failures; 21 var failures;
22 22
23 beforeEach(function(done) { 23 beforeEach(function(done) {
24 card = document.createElement('ct-failure-card'); 24 card = document.createElement('ct-failure-card');
25 var cl = new CTCommitListMock(); 25 var cl = new CTCommitListMock();
26 group = new CTFailureGroup([ 26 group = new CTFailureGroup('', [
27 new CTFailure('autobot', 'unknown', {someBuilder: {key: 'a'}}, {'blink': 158547}, 27 new CTFailure('autobot', 'unknown', {someBuilder: {key: 'a'}}, {'blink': 158547},
28 {'blink':158544})], cl); 28 {'blink':158544})], cl);
29 card.group = group; 29 card.group = group;
30 card.commitLog = new CTCommitLogMock(); 30 card.commitLog = new CTCommitLogMock();
31 setTimeout(done); 31 setTimeout(done);
32 }); 32 });
33 33
34 describe('failure card UI', function() { 34 describe('failure card UI', function() {
35 35
36 it('should have commit summaries', function(done) { 36 it('should have commit summaries', function(done) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 done(); 130 done();
131 }); 131 });
132 }); 132 });
133 }); 133 });
134 }); 134 });
135 135
136 }); 136 });
137 137
138 })() 138 })()
139 </script> 139 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-sheriff-o-matic.html ('k') | Tools/GardeningServer/ui/test/ct-failure-stream-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698