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

Unified Diff: Tools/GardeningServer/ui/ct-failure-stream-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: Moar flex 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-stream-tests.html
diff --git a/Tools/GardeningServer/ui/ct-failure-stream-tests.html b/Tools/GardeningServer/ui/ct-failure-stream-tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..379b8b5ef636ed4f94ca7b6d61dad6fef50fb6cf
--- /dev/null
+++ b/Tools/GardeningServer/ui/ct-failure-stream-tests.html
@@ -0,0 +1,34 @@
+<!--
+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-stream.html">
+
+<script>
+(function () {
+
+module("ct-failure-stream");
+
+asyncTest("basic", 3, function() {
+ var stream = document.createElement('ct-failure-stream');
+
+ // FIXME: We should use some more interesting test data, but
+ // ct-failure-stream will give these values to ct-commit-data,
+ // which will hit the network unless we figure out how to mock
+ // out ct-commit-data in a better way.
+ stream.groups = [[], []];
+
+ Platform.endOfMicrotask(function() {
+ var cards = stream.shadowRoot.querySelectorAll('ct-failure-card');
+ equal(cards.length, 2);
+ deepEqual(cards[0].failures, []);
+ deepEqual(cards[1].failures, []);
+
+ start();
+ });
+});
+
+})()
+</script>

Powered by Google App Engine
This is Rietveld 408576698