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

Unified 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: address review 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-analyzer.html ('k') | Tools/GardeningServer/ui/ct-failure-card.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-failure-analyzer-tests.html
diff --git a/Tools/GardeningServer/ui/ct-failure-analyzer-tests.html b/Tools/GardeningServer/ui/ct-failure-analyzer-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..d25fc23a1f4bae45fa158d9042f69bcfd0d92168
--- /dev/null
+++ b/Tools/GardeningServer/ui/ct-failure-analyzer-tests.html
@@ -0,0 +1,29 @@
+<!--
+Copyright 2014 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<link rel="import" href="ct-failure-analyzer.html">
+
+<script>
+(function() {
+
+module("ct-failure-analyzer");
+
+test("_failureComparator", 1, function() {
+ var analyzer = document.createElement('ct-failure-analyzer');
+
+ var resultsByBuilder = {};
+ var failure1 = new CTFailure("step1", "reason1", resultsByBuilder, 123, 123);
+ var failure2 = new CTFailure("step1", "reason2", resultsByBuilder, 123, 123);
+ var failure3 = new CTFailure("step1", "reason3", resultsByBuilder, 123, 123);
+ var failure4 = new CTFailure("step2", "reason1", resultsByBuilder, 123, 123);
+
+ var failures = [failure4, failure3, failure2, failure1];
+ var expectedFailures = [failure1, failure2, failure3, failure4];
+ deepEqual(failures.sort(analyzer._failureComparator), expectedFailures);
+});
+
+})()
+</script>
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-analyzer.html ('k') | Tools/GardeningServer/ui/ct-failure-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698