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-builder-tests.html

Issue 411763003: Set up mocha, chai and karma for sheriff-o-matic unit testing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm head/body tag 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
« no previous file with comments | « Tools/GardeningServer/ui/test/ct-builder-grid-tests.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-builder.html">
8
9 <script>
10 (function () {
11
12 var assert = chai.assert;
13
14 describe('ct-builder', function() {
15 var builder;
16
17 beforeEach(function(done) {
18 builder = document.createElement('ct-builder');
19 builder.builder = 'WebKit Linux (dbg)';
20 requestAnimationFrame(function() { done(); });
21 });
22
23 describe('default builder UI', function() {
24 it('should link to the builder', function() {
25 var a = builder.shadowRoot.querySelector('a');
26 assert.ok(a.href);
27 assert.include(a.href, 'WebKit+Linux+(dbg)');
28 });
29 });
30
31 describe('builder UI with steps', function() {
32 beforeEach(function(done) {
33 builder.steps = ['gclient_revert', 'compile', 'unittests'];
34 requestAnimationFrame(function() { done(); });
35 });
36
37 it('should link to builder and show steps', function() {
38 var a = builder.shadowRoot.querySelector('a');
39 assert.ok(a);
40 assert.include(a.href, 'WebKit+Linux+(dbg)');
41 assert.include(a.innerText, 'gclient_revert, compile, unittests');
42 });
43 });
44 });
45
46 })()
47 </script>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/test/ct-builder-grid-tests.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698