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 <link rel="import" href="../model/ct-builder.html"> | |
10 | |
11 <script> | |
12 (function () { | |
13 | |
14 module("ct-builder"); | |
15 | |
16 asyncTest("basic", 4, function() { | |
17 var builder = document.createElement('ct-builder'); | |
18 | |
19 var masterUrl = 'http://url/'; | |
20 var builderName = 'WebKit Linux (dbg)'; | |
21 var firstFailingBuild = '1234'; | |
22 builder.builder = new CTBuilder(masterUrl, | |
23 builderName, firstFailingBuild); | |
24 | |
25 builder.async(function() { | |
26 var html = builder.shadowRoot.innerHTML; | |
27 | |
28 var a = builder.shadowRoot.querySelector('a'); | |
29 ok(a); | |
30 equal(a.href.indexOf(masterUrl), 0); | |
31 notEqual(a.href.indexOf(encodeURIComponent(builderName)), -1); | |
32 notEqual(a.href.indexOf(firstFailingBuild), -1); | |
33 | |
34 start(); | |
35 }); | |
36 }); | |
37 | |
38 })() | |
39 </script> | |
OLD | NEW |