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

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

Issue 416673003: Show non-webkit test failures in the failure stream (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add files accidentally left out 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-failure-analyzer.html">
8
9 <script>
10 (function() {
11
12 module("ct-failure-analyzer");
13
14 test("_failureComparator", 1, function() {
15 var analyzer = document.createElement('ct-failure-analyzer');
16
17 var resultsByBuilder = {};
18 var failure1 = new CTFailure("step1", "reason1", resultsByBuilder, 123, 123);
19 var failure2 = new CTFailure("step1", "reason2", resultsByBuilder, 123, 123);
20 var failure3 = new CTFailure("step1", "reason3", resultsByBuilder, 123, 123);
21 var failure4 = new CTFailure("step2", "reason1", resultsByBuilder, 123, 123);
22
23 var failures = [failure4, failure3, failure2, failure1];
24 var expectedFailures = [failure1, failure2, failure3, failure4];
25 deepEqual(failures.sort(analyzer._failureComparator), expectedFailures);
26 });
27
28 })()
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698