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.
7 <link rel="import" href="../ct-builder.html">
12 var assert = chai.assert;
14 describe('ct-builder', function() {
16 var masterUrl = 'http://url';
17 var builderName = 'WebKit Linux (dbg)';
18 var firstFailingBuild = '1234';
20 beforeEach(function(done) {
21 builder = document.createElement('ct-builder');
22 builder.builder = new CTBuilder(masterUrl, builderName, firstFailingBuild);
27 describe('default builder UI', function() {
28 it('should link to the builder', function() {
29 var a = builder.shadowRoot.querySelector('a');
31 assert(a.href.startsWith(masterUrl));
32 assert.include(a.href, encodeURIComponent(builderName));
33 assert.include(a.href, firstFailingBuild);