| OLD | NEW |
| (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 describe('default builder UI', function() { | |
| 16 it('should link to builder', function(done) { | |
| 17 var masterUrl = 'https://url'; | |
| 18 var builderName = 'WebKit Linux (dbg)'; | |
| 19 | |
| 20 var builder = document.createElement('ct-builder'); | |
| 21 builder.builder = new CTBuilder(masterUrl, builderName, 1); | |
| 22 | |
| 23 setTimeout(function() { | |
| 24 var a = builder.shadowRoot.querySelector('a'); | |
| 25 assert.ok(a); | |
| 26 assert(a.href.startsWith(masterUrl)); | |
| 27 assert.include(a.href, encodeURIComponent(builderName)); | |
| 28 | |
| 29 done(); | |
| 30 }); | |
| 31 }); | |
| 32 }); | |
| 33 }); | |
| 34 | |
| 35 })() | |
| 36 </script> | |
| OLD | NEW |