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 window.el = el; | |
24 Platform.endOfMicrotask(function() { | |
25 var builders = el.shadowRoot.querySelectorAll('ct-builder'); | |
26 | |
27 // todo: make this work without the timeout! | |
28 window.setTimeout((function() { | |
29 | |
30 for (var i = 0; i < builders.length; i++) { | |
31 var steps = builders[i].shadowRoot.querySelector('.details'); | |
32 ok(steps.innerText == 'compile' || | |
michaelpg
2014/07/07 23:15:20
Without the timeout, this throws:
Uncaught Typ
abarth-chromium
2014/07/07 23:56:05
Maybe call Platform.endOfMicrotask again instead o
michaelpg
2014/07/07 23:58:17
I'm not sure what endOfMicrotask does (haven't fou
| |
33 steps.innerText == 'content_browsertests, unit_tests' || | |
34 steps.innerText == 'runhooks, webkit_unit_tests, webkit_lint'); | |
35 } | |
36 start(); | |
37 | |
38 // todo: make this work without the timeout! | |
39 }).bind(this), 500); | |
40 }); | |
41 }); | |
42 | |
43 })() | |
44 </script> | |
OLD | NEW |