| 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-failing-builders.html"> | |
| 8 | |
| 9 <script> | |
| 10 (function () { | |
| 11 | |
| 12 var kExampleBuilders = { | |
| 13 'Win7 (dbg)': ['compile'], | |
| 14 'WebKit Mac10.6 (dbg)': ['content_browsertests', 'unit_tests'], | |
| 15 'WebKit XP': ['runhooks', 'webkit_unit_tests', 'webkit_lint'], | |
| 16 }; | |
| 17 | |
| 18 module("ct-failing-builders"); | |
| 19 | |
| 20 asyncTest("basic", 3, function() { | |
| 21 var el = document.createElement('ct-failing-builders'); | |
| 22 el.builders = kExampleBuilders; | |
| 23 | |
| 24 el.async(function() { | |
| 25 var builders = el.shadowRoot.querySelectorAll('ct-builder'); | |
| 26 for (var i = 0; i < builders.length; i++) { | |
| 27 var steps = builders[i].shadowRoot.querySelector('.details'); | |
| 28 ok(steps.textContent == 'compile' || | |
| 29 steps.textContent == 'content_browsertests, unit_tests' || | |
| 30 steps.textContent == 'runhooks, webkit_unit_tests, webkit_lint'); | |
| 31 } | |
| 32 start(); | |
| 33 }); | |
| 34 }); | |
| 35 | |
| 36 })() | |
| 37 </script> | |
| OLD | NEW |