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

Side by Side Diff: Tools/GardeningServer/ui/test/ct-tree-status-tests.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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-tree-status.html">
8
9 <script>
10 (function () {
11
12 var assert = chai.assert;
13
14 describe('ct-tree-status', function() {
15 it('should show statuses', function(done) {
16 var openTree = document.createElement("ct-tree-status");
17 var openTreeStatus = new TreeStatus('open-tree-project');
18 openTreeStatus.status = 'open';
19 openTree.status = openTreeStatus;
20
21 var throttledTree = document.createElement("ct-tree-status");
22 var throttledTreeStatus = new TreeStatus('throttled-tree-project');
23 throttledTreeStatus.status = 'throttled';
24 throttledTreeStatus.message = 'Tree is throttled just for fun';
25 throttledTree.status = throttledTreeStatus;
26
27 var closedTree = document.createElement("ct-tree-status");
28 var closedTreeStatus = new TreeStatus('closed-tree-project');
29 closedTreeStatus.status = 'closed';
30 closedTreeStatus.message = 'Tree is closed';
31 closedTree.status = closedTreeStatus;
32
33 setTimeout(function() {
34 assert.notInclude(!openTree.shadowRoot.textContent, "open-tree-project");
35 assert.include(throttledTree.shadowRoot.textContent, "throttled-tree-proje ct");
36 assert.include(closedTree.shadowRoot.textContent, "closed-tree-project");
37 assert.equal(closedTree.shadowRoot.querySelector('a').href, closedTreeStat us.url);
38
39 done();
40 });
41 });
42 });
43
44 })();
45 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/test/ct-tree-select-tests.html ('k') | Tools/GardeningServer/ui/test/ct-trooper-card-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698