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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7be90f351f785e1c4943b8b4a8702524af3855f6 |
--- /dev/null |
+++ b/Tools/GardeningServer/ui/ct-failure-card-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-card.html"> |
+ |
+<script> |
+(function () { |
+ |
+module("ct-failure-card"); |
+ |
+asyncTest("examine", 1, function() { |
+ var card = document.createElement('ct-failure-card'); |
+ card.failures = []; |
+ |
+ Platform.endOfMicrotask(function() { |
+ card.addEventListener('ct-examine-failures', function(event) { |
+ deepEqual(event.detail, []); |
+ start(); |
+ }); |
+ |
+ card.shadowRoot.getElementById('examine').dispatchEvent(new CustomEvent('tap')); |
+ }); |
+}); |
+ |
+})() |
+</script> |