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

Side by Side Diff: Tools/GardeningServer/ui/ct-results-panel-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: Fix closing tag 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-panel.html">
8
9 <script>
10 (function () {
11
12 var kExampleFailures = [{
13 "testName": "plugins/gesture-events-scrolled.html",
14 "resultNodesByBuilder": {
15 "WebKit Win7 (dbg)": {
16 "expected": "PASS",
17 "is_unexpected": true,
18 "actual": "CRASH",
19 "time": 0.9
20 },
21 "WebKit Mac10.6 (dbg)": {
22 "expected": "PASS",
23 "is_unexpected": true,
24 "actual": "CRASH",
25 "has_stderr": true,
26 "time": 1.8
27 },
28 "WebKit Mac10.7 (dbg)": {
29 "expected": "PASS",
30 "is_unexpected": true,
31 "actual": "CRASH",
32 "has_stderr": true,
33 "time": 3.2
34 }
35 },
36 "oldestFailingRevision": 177164,
37 "newestPassingRevision": 177165
38 }, {
39 "testName": "plugins/transformed-events.html",
40 "resultNodesByBuilder": {
41 "WebKit Win7 (dbg)": {
42 "expected": "PASS",
43 "is_unexpected": true,
44 "actual": "CRASH",
45 "time": 0.6
46 },
47 "WebKit Mac10.6 (dbg)": {
48 "expected": "PASS",
49 "is_unexpected": true,
50 "actual": "CRASH",
51 "has_stderr": true,
52 "time": 1.4
53 },
54 "WebKit Mac10.7 (dbg)": {
55 "expected": "PASS",
56 "is_unexpected": true,
57 "actual": "CRASH",
58 "has_stderr": true,
59 "time": 3
60 }
61 },
62 "oldestFailingRevision": 177164,
63 "newestPassingRevision": 177165
64 }, {
65 "testName": "plugins/gesture-events.html",
66 "resultNodesByBuilder": {
67 "WebKit Win7 (dbg)": {
68 "expected": "PASS",
69 "is_unexpected": true,
70 "actual": "CRASH",
71 "time": 1.7
72 },
73 "WebKit Mac10.6 (dbg)": {
74 "expected": "PASS",
75 "is_unexpected": true,
76 "actual": "CRASH",
77 "has_stderr": true,
78 "time": 2.5
79 },
80 "WebKit Mac10.7 (dbg)": {
81 "expected": "PASS",
82 "is_unexpected": true,
83 "actual": "CRASH",
84 "has_stderr": true,
85 "time": 3.4
86 }
87 },
88 "oldestFailingRevision": 177164,
89 "newestPassingRevision": 177165
90 }];
91
92 module("ct-results-panel");
93
94 asyncTest("empty", 1, function() {
95 var panel = document.createElement('ct-results-panel');
96
97 Platform.endOfMicrotask(function() {
98 var message = panel.shadowRoot.querySelector('.message');
99 equal(message.textContent, 'No results to display.');
100
101 start();
102 });
103 });
104
105 asyncTest("basic", 8, function() {
106 var panel = document.createElement('ct-results-panel');
107
108 panel.failures = kExampleFailures;
109
110 Platform.endOfMicrotask(function() {
111 var items = panel.shadowRoot.querySelectorAll('paper-item');
112 equal(items.length, 3);
113 equal(items[0].label, 'plugins/gesture-events-scrolled.html');
114 equal(items[1].label, 'plugins/transformed-events.html');
115 equal(items[2].label, 'plugins/gesture-events.html');
116
117 var results = panel.shadowRoot.querySelectorAll('ct-results-by-builder');
118 equal(results.length, 1);
119 equal(results[0].failure, kExampleFailures[0]);
120
121 panel.shadowRoot.querySelector('core-menu').selected = 2;
122
123 Platform.endOfMicrotask(function() {
124 var results = panel.shadowRoot.querySelectorAll('ct-results-by-builder');
125 equal(results.length, 1);
126 equal(results[0].failure, kExampleFailures[2]);
127
128 start();
129 });
130 });
131 });
132
133 })()
134 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698