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

Unified Diff: Tools/GardeningServer/model/ct-failure-tests.html

Issue 458473003: Group similar failures (same directory, same fixture) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/GardeningServer/model/ct-failure.html ('k') | Tools/GardeningServer/run-unittests.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/model/ct-failure-tests.html
diff --git a/Tools/GardeningServer/model/ct-failure-tests.html b/Tools/GardeningServer/model/ct-failure-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..903267e54d381af5b836ccbf9ff17644eeb221f4
--- /dev/null
+++ b/Tools/GardeningServer/model/ct-failure-tests.html
@@ -0,0 +1,35 @@
+<!--
+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.html">
+
+<script>
+(function () {
+
+module("ct-failure");
+
+test("basic", 3, function() {
+ var tests = [
+ {
+ failure: new CTFailure('browser_tests', 'FooTest.Bar', {}, 123, 123),
+ expectedGroupName: 'FooTest'
+ },
+ {
+ failure: new CTFailure('webkit_tests', 'fast/text/foo.html', {}, 123, 123),
+ expectedGroupName: 'fast/text'
+ },
+ {
+ failure: new CTFailure('compile', undefined, {}, 123, 123),
+ expectedGroupName: undefined
+ }
+ ];
+ tests.forEach(function(test) {
+ equal(test.failure.reasonGroupName(), test.expectedGroupName);
+ }.bind(this));
+});
+
+})();
+</script>
« no previous file with comments | « Tools/GardeningServer/model/ct-failure.html ('k') | Tools/GardeningServer/run-unittests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698