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 = []; |