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

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

Issue 407903002: Sort the failure names in sheriff-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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-card.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-failure-card-tests.html
diff --git a/Tools/GardeningServer/ui/ct-failure-card-tests.html b/Tools/GardeningServer/ui/ct-failure-card-tests.html
index 7be90f351f785e1c4943b8b4a8702524af3855f6..b3a638996847126f84177153f4bb6f73ce59ac0e 100644
--- a/Tools/GardeningServer/ui/ct-failure-card-tests.html
+++ b/Tools/GardeningServer/ui/ct-failure-card-tests.html
@@ -11,6 +11,17 @@ found in the LICENSE file.
module("ct-failure-card");
+test("testNames", 1, function() {
+ var card = document.createElement('ct-failure-card');
+ // FIXME: Use a proper model class instead of a dumb object.
+ var failures = [
+ {testName: 'foo'},
+ {testName: 'bar'},
+ {testName: 'baz'},
+ ];
+ deepEqual(card.testNames(failures), ['bar', 'baz', 'foo']);
+});
+
asyncTest("examine", 1, function() {
var card = document.createElement('ct-failure-card');
card.failures = [];
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-card.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698