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

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

Issue 410483002: Add the revision details widget to sheriff-o-matic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update to ToT, add Popup Menu and tests. Created 6 years, 4 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
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 <link rel="import" href="../model/ct-builder-revisions-mock.html">
9
10 <script>
11 (function() {
12
13 module("ct-revision-details");
14
15 asyncTest("empty", 2, function() {
16 var revisionDetails = document.createElement('ct-revision-details');
17 requestAnimationFrame(function() {
18 equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevision'), n ull);
ojan 2014/08/05 02:07:23 It's very mysterious to me that revisionDetails.$.
leviw_travelin_and_unemployed 2014/08/05 20:51:17 Beats me, but you will notice there are no other t
19 equal(revisionDetails.shadowRoot.querySelector('#trunkRevision'), null);
20 start();
21 });
22 });
23
24 asyncTest("basic", 2, function() {
25 var revisionDetails = document.createElement('ct-revision-details');
26
27 var builderRevisions = CTBuilderRevisionsMock();
28 var commitLog = CTCommitLogMock();
29 commitLog._findFirstAndLastRevisions('blink');
ojan 2014/08/05 02:07:23 Should CTCommitLogMock be the one doing this? Seem
leviw_travelin_and_unemployed 2014/08/05 20:51:17 Doing it in CTCommitLogMock breaks ct-commit-list:
30
31 revisionDetails.builderLatestRevisions = builderRevisions;
32 revisionDetails.tree = 'blink';
33 revisionDetails.revisionLog = commitLog;
34
35 requestAnimationFrame(function() {
36 equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevision'). innerText, '158543');
37 equal(revisionDetails.shadowRoot.querySelector('#trunkRevision').innerText , '158545');
38 start();
39 });
40 });
41
42 })()
43 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698