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

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: Spaces in the curlies! 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);
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');
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
« no previous file with comments | « Tools/GardeningServer/ui/ct-revision-details.html ('k') | Tools/GardeningServer/ui/ct-unexpected-failures.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698