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

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

Issue 349783003: Polymer-based Garden-O-Matic should have a basic results panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Michael's comments Created 6 years, 6 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
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>

Powered by Google App Engine
This is Rietveld 408576698