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

Side by Side Diff: Tools/GardeningServer/ui/ct-results-by-builder-tests.html

Issue 349783003: Polymer-based Garden-O-Matic should have a basic results panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Michael's comments 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-results-by-builder.html">
8
9 <script>
10 (function () {
11
12 var kExampleFailure = {
13 "testName": "inspector/console/console-viewport-selection.html",
14 "resultNodesByBuilder": {
15 "WebKit Linux (dbg)": {
16 "expected": "SLOW",
17 "is_unexpected": true,
18 "actual": "TEXT",
19 "bugs": ["webkit.org/b/90488"],
20 "time": 5.9
21 },
22 "WebKit Mac10.6 (dbg)": {
23 "actual": "TEXT",
24 "time": 6.5,
25 "bugs": ["webkit.org/b/90488"],
26 "is_unexpected": true,
27 "expected": "SLOW",
28 "has_stderr": true
29 }
30 },
31 "oldestFailingRevision": 177164,
32 "newestPassingRevision": 177165
33 };
34
35 module("ct-results-by-builder");
36
37 asyncTest("basic", 9, function() {
38 var results = document.createElement('ct-results-by-builder');
39
40 results.failure = kExampleFailure;
41
42 Platform.endOfMicrotask(function() {
43 var tabs = results.shadowRoot.querySelectorAll('paper-tab');
44 equal(tabs.length, 2);
45 equal(tabs[0].textContent, 'Linux (dbg)');
46 equal(tabs[1].textContent, 'Mac10.6 (dbg)');
47
48 var detail = results.shadowRoot.querySelectorAll('ct-results-detail');
49 equal(detail.length, 1);
50 equal(detail[0].test, 'inspector/console/console-viewport-selection.html');
51 equal(detail[0].builder, 'WebKit Linux (dbg)');
52
53 results.shadowRoot.querySelector('paper-tabs').selected = 1;
54
55 Platform.endOfMicrotask(function() {
56 var detail = results.shadowRoot.querySelectorAll('ct-results-detail');
57 equal(detail.length, 1);
58 equal(detail[0].test, 'inspector/console/console-viewport-selection.html') ;
59 equal(detail[0].builder, 'WebKit Mac10.6 (dbg)');
60
61 start();
62 });
63 });
64 });
65
66 })()
67 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698