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() {
15 describe('default builder UI', function() {
16 it('should link to builder', function(done) {
17 var masterUrl = 'https://url';
18 var builderName = 'WebKit Linux (dbg)';
20 var builder = document.createElement('ct-builder');
21 builder.builder = new CTBuilder(masterUrl, builderName, 1);
23 setTimeout(function() {
24 var a = builder.shadowRoot.querySelector('a');
26 assert(a.href.startsWith(masterUrl));
27 assert.include(a.href, encodeURIComponent(builderName));