| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. | 4 found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <link rel="import" href="ct-builder.html"> | 7 <link rel="import" href="ct-builder.html"> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 (function () { | 10 (function () { |
| 11 | 11 |
| 12 module("ct-builder"); | 12 module("ct-builder"); |
| 13 | 13 |
| 14 asyncTest("basic", 2, function() { | 14 asyncTest("basic", 2, function() { |
| 15 var builder = document.createElement('ct-builder'); | 15 var builder = document.createElement('ct-builder'); |
| 16 builder.builderName = 'WebKit Linux (dbg)'; | 16 builder.builderName = 'WebKit Linux (dbg)'; |
| 17 | 17 |
| 18 Platform.endOfMicrotask(function() { | 18 Platform.endOfMicrotask(function() { |
| 19 var html = builder.shadowRoot.innerHTML; | 19 var html = builder.shadowRoot.innerHTML; |
| 20 | 20 |
| 21 var a = builder.shadowRoot.querySelector('a'); | 21 var a = builder.shadowRoot.querySelector('a'); |
| 22 ok(a); | 22 ok(a); |
| 23 notEqual(a.href.indexOf('WebKit%20Linux%20(dbg)'), -1); | 23 notEqual(a.href.indexOf('WebKit%20Linux%20(dbg)'), -1); |
| 24 | 24 |
| 25 start(); | 25 start(); |
| 26 }); | 26 }); |
| 27 }); | 27 }); |
| 28 | 28 |
| 29 asyncTest("steps", 3, function() { |
| 30 var builder = document.createElement('ct-builder'); |
| 31 builder.builderName = 'WebKit Linux (dbg)'; |
| 32 builder.steps = ['gclient_revert', 'compile', 'unittests']; |
| 33 |
| 34 Platform.endOfMicrotask(function() { |
| 35 var a = builder.shadowRoot.querySelector('a'); |
| 36 ok(a); |
| 37 notEqual(a.href.indexOf('WebKit%20Linux%20(dbg)'), -1); |
| 38 notEqual(a.innerText.indexOf('gclient_revert, compile, unittests'), -1); |
| 39 |
| 40 start(); |
| 41 }); |
| 42 }); |
| 43 |
| 29 })() | 44 })() |
| 30 </script> | 45 </script> |
| OLD | NEW |