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

Side by Side Diff: Tools/GardeningServer/ui/ct-sheriff-o-matic.html

Issue 418253002: Expose the chromium waterfall in sheriff-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge to ToT Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <script src="../bower_components/sugar/release/sugar-full.development.js"></scri pt> 7 <script src="../bower_components/sugar/release/sugar-full.development.js"></scri pt>
8 <script src="../scripts/net.js"></script> 8 <script src="../scripts/net.js"></script>
9 <script src="../scripts/results.js"></script> 9 <script src="../scripts/results.js"></script>
10 <script src="../scripts/treestatus.js"></script> 10 <script src="../scripts/treestatus.js"></script>
(...skipping 12 matching lines...) Expand all
23 flex-direction: column; 23 flex-direction: column;
24 height: 100%; 24 height: 100%;
25 } 25 }
26 header { 26 header {
27 -webkit-user-select: none; 27 -webkit-user-select: none;
28 align-items: center; 28 align-items: center;
29 background-color: #212121; 29 background-color: #212121;
30 color: white; 30 color: white;
31 cursor: default; 31 cursor: default;
32 display: flex; 32 display: flex;
33 justify-content: space-between;
33 font-size: 1.1em; 34 font-size: 1.1em;
34 } 35 }
35 header a, header span { 36 header a, header span {
36 color: white; 37 color: white;
37 display: inline-block; 38 display: inline-block;
38 padding: 0.25em 4px; 39 padding: 0.25em 4px;
39 text-decoration: none; 40 text-decoration: none;
40 } 41 }
41 core-animated-pages { 42 core-animated-pages {
42 flex: 1; 43 flex: 1;
43 } 44 }
44 </style> 45 </style>
45 46
46 <header> 47 <header>
47 <template if="{{ selected == 0 }}"> 48 <div>
48 <span><img src="../favicon.ico"> Auto-sheriff-o-maticon</span> 49 <template if="{{ selected == 0 }}">
49 </template> 50 <span><img src="../favicon.ico"> Auto-sheriff-o-maticon</span>
50 <template if="{{ selected == 1 }}"> 51 </template>
51 <a on-click="{{ onBack }}"> 52 <template if="{{ selected == 1 }}">
52 &lt;&lt; Go back 53 <a on-click="{{ onBack }}">
53 </a> 54 &lt;&lt; Go back
54 </template> 55 </a>
56 </template>
57 </div>
58 <!-- FIXME: Use a proper polymer component with data binding. -->
59 <select id="tree" on-change="{{ _updateTree }}">
60 <option value="blink">Blink</option>
61 <option value="chromium">Chromium</option>
62 </select>
55 </header> 63 </header>
56 64
57 <core-animated-pages selected="{{ selected }}" transitions="slide-from-right "> 65 <core-animated-pages selected="{{ selected }}" transitions="slide-from-right ">
58 <ct-unexpected-failures on-ct-examine-failures="{{ onExamine }}"></ct-unex pected-failures> 66 <ct-unexpected-failures tree="{{ tree }}" on-ct-examine-failures="{{ onExa mine }}"></ct-unexpected-failures>
59 <ct-results-panel failures="{{ currentFailures }}"></ct-results-panel> 67 <ct-results-panel failures="{{ currentFailures }}" tree="{{ tree }}"></ct- results-panel>
60 </core-animated-pages> 68 </core-animated-pages>
61 </template> 69 </template>
62 <script> 70 <script>
63 Polymer({ 71 Polymer({
72 // FIXME: Make chromium the default.
73 // That requires updating the select to the right value.
74 tree: 'blink',
64 selected: 0, 75 selected: 0,
65 currentFailures: [], 76 currentFailures: [],
66 77
78 _updateTree: function() {
79 this.tree = this.$.tree.selectedOptions[0].value;
80 },
81
67 onBack: function() { 82 onBack: function() {
68 this.selected = 0; 83 this.selected = 0;
69 }, 84 },
70 85
71 onExamine: function(event) { 86 onExamine: function(event) {
72 this.currentFailures = event.detail; 87 this.currentFailures = event.detail;
73 this.selected = 1; 88 this.selected = 1;
74 }, 89 },
75 }); 90 });
76 </script> 91 </script>
77 </polymer-element> 92 </polymer-element>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-results-panel.html ('k') | Tools/GardeningServer/ui/ct-test-list.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698