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

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

Issue 464163002: Sheriff-o-Matic: Convert some more ui tests to mocha (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 <link rel="import" href="../model/ct-commit-log-mock.html">
10
11 <script>
12 (function() {
13
14 module("ct-revision-details");
15
16 asyncTest("empty", 2, function() {
17 var revisionDetails = document.createElement('ct-revision-details');
18 requestAnimationFrame(function() {
19 equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevision'), n ull);
20 equal(revisionDetails.shadowRoot.querySelector('#trunkRevision'), null);
21 start();
22 });
23 });
24
25 asyncTest("basic", 2, function() {
26 var revisionDetails = document.createElement('ct-revision-details');
27
28 var builderRevisions = CTBuilderRevisionsMock();
29 var commitLog = CTCommitLogMock();
30 commitLog._findFirstAndLastRevisions('blink');
31
32 revisionDetails.builderLatestRevisions = builderRevisions;
33 revisionDetails.tree = 'blink';
34 revisionDetails.revisionLog = commitLog;
35
36 requestAnimationFrame(function() {
37 equal(revisionDetails.shadowRoot.querySelector('#fullyProcessedRevision'). innerText, '158543');
38 equal(revisionDetails.shadowRoot.querySelector('#trunkRevision').innerText , '158545');
39 start();
40 });
41 });
42
43 })()
44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698