Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: Tools/GardeningServer/ui/ct-failing-builders-tests.html

Issue 371133003: Add failed builders to sheriff-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698