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 expect = chai.expect; | |
13 | |
14 suite('ct-builder', function() { | |
15 var builder; | |
16 | |
17 suiteSetup(function(done) { | |
18 builder = document.createElement('ct-builder'); | |
19 builder.builder = 'WebKit Linux (dbg)'; | |
20 requestAnimationFrame(function() { done(); }); | |
ojan
2014/07/23 01:36:58
Lol. I like that we can say done now instead of st
michaelpg
2014/07/23 02:12:01
If we wanted, we could do it qunit-style by removi
| |
21 }); | |
22 | |
23 suite('basic', function() { | |
24 test('basic', function() { | |
25 var a = builder.shadowRoot.querySelector('a'); | |
26 expect(a.href); | |
esprehn
2014/07/25 23:59:39
This is weird.
michaelpg
2014/07/28 20:35:05
Acknowledged.
| |
27 expect(a.href).include('WebKit+Linux+(dbg)'); | |
28 }); | |
29 }); | |
30 | |
31 suite('steps', function() { | |
32 setup(function(done) { | |
33 builder.steps = ['gclient_revert', 'compile', 'unittests']; | |
34 requestAnimationFrame(function() { done(); }); | |
35 }); | |
36 | |
37 test('basic', function() { | |
38 var a = builder.shadowRoot.querySelector('a'); | |
39 expect(a).ok; | |
40 expect(a.href).include('WebKit+Linux+(dbg)'); | |
41 expect(a.innerText).include('gclient_revert, compile, unittests'); | |
42 }); | |
43 }); | |
44 }); | |
45 | |
46 })() | |
47 </script> | |
OLD | NEW |