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

Side by Side Diff: Tools/GardeningServer/ui/ct-failure-grouper.html

Issue 413073004: Show non-Blink ranges in sheriff-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address review comments Created 6 years, 4 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 <polymer-element name="ct-failure-grouper" attributes="failures groups">
8 <script>
9 Polymer({
10 failures: [],
11 groups: [],
12
13 failureComparator: function(a, b) {
14 return a.testName < b.testName;
15 },
16
17 failuresChanged: function() {
18 var map = {};
19 for (var i = 0; i < this.failures.length; ++i) {
20 var failureAnalysis = this.failures[i];
21 var key = failureAnalysis.newestPassingRevision + "+" + failureAnalysi s.oldestFailingRevision;
22 if (!(key in map))
23 map[key] = [];
24 map[key].push(failureAnalysis);
25 }
26
27 this.groups = [];
28 var keys = Object.getOwnPropertyNames(map).sort();
29 for (var i = 0; i < keys.length; ++i) {
30 var key = keys[i];
31 this.groups[i] = map[key].sort(this.failureComparator.bind(this));
32 }
33 },
34 });
35 </script>
36 </polymer-element>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-card.html ('k') | Tools/GardeningServer/ui/ct-failure-grouper-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698