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

Unified Diff: Tools/GardeningServer/ui/ct-unexpected-failures.html

Issue 345853005: Start a top-down rewrite of Garden-O-Matic in Polymer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove stray console.log 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-unexpected-failures.html
diff --git a/Tools/GardeningServer/ui/ct-unexpected-failures.html b/Tools/GardeningServer/ui/ct-unexpected-failures.html
new file mode 100644
index 0000000000000000000000000000000000000000..f11d8c57ce833778ea7c57c97d0456cd00aa85a2
--- /dev/null
+++ b/Tools/GardeningServer/ui/ct-unexpected-failures.html
@@ -0,0 +1,46 @@
+<!--
+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="../bower_components/paper-button/paper-button.html">
+<link rel="import" href="../bower_components/paper-toast/paper-toast.html">
+<link rel="import" href="ct-failure-analyzer.html">
+<link rel="import" href="ct-failure-grouper.html">
+<link rel="import" href="ct-failure-stream.html">
+
+<polymer-element name="ct-unexpected-failures">
+ <template>
+ <style>
+ paper-toast {
esprehn 2014/07/08 16:25:05 You probably meant to add :host { display: block;
+ bottom: 40px;
+ left: 10px;
+ }
+ #update {
+ background: #4285f4;
+ color: #fff;
+ }
+ </style>
+ <ct-failure-analyzer id="analyzer" status="{{analyzerStatus}}" failures="{{failures}}"></ct-failure-analyzer>
+ <ct-failure-grouper failures="{{failures}}" groups="{{failureGroups}}"></ct-failure-grouper>
+ <paper-button id="update" on-tap="{{update}}">Update</paper-button>
+ <ct-failure-stream groups="{{failureGroups}}"></ct-failure-stream>
esprehn 2014/07/08 16:25:05 Some of these seem to be data sources and some are
+ <paper-toast id="toast" text="{{analyzerStatus}}"></paper-toast>
ojan 2014/06/29 04:48:25 BTW, I tried this out locally and I'm not sure the
+ </template>
+ <script>
+ Polymer({
+ attached: function() {
+ this.update();
+ },
+
+ update: function() {
+ this.$.analyzer.update();
+ },
+
+ analyzerStatusChanged: function() {
+ this.$.toast.show();
+ },
+ });
+ </script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698