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

Side by Side Diff: Tools/GardeningServer/ui/ct-embedded-flakiness-dashboard.html

Issue 418253002: Expose the chromium waterfall in sheriff-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 <polymer-element name="ct-embedded-flakiness-dashboard" attributes="test"> 7 <polymer-element name="ct-embedded-flakiness-dashboard" attributes="test tree">
8 <template> 8 <template>
9 <style> 9 <style>
10 :host { 10 :host {
11 display: block; 11 display: block;
12 } 12 }
13 #iframe { 13 #iframe {
14 border: none; 14 border: none;
15 width: 100%; 15 width: 100%;
16 } 16 }
17 </style> 17 </style>
18 <iframe id="iframe"></iframe> 18 <iframe id="iframe"></iframe>
19 </template> 19 </template>
20 <script> 20 <script>
21 Polymer({ 21 Polymer({
22 test: "", 22 test: "",
23 tree: "",
23 24
24 ready: function() { 25 ready: function() {
25 window.addEventListener('message', function(event) { 26 window.addEventListener('message', function(event) {
26 if (event.data.command != 'heightChanged') 27 if (event.data.command != 'heightChanged')
27 return; 28 return;
28 29
29 this.$.iframe.style.height = event.data.height + 'px'; 30 this.$.iframe.style.height = event.data.height + 'px';
30 }.bind(this)); 31 }.bind(this));
31 }, 32 },
32 33
33 testChanged: function() { 34 testChanged: function() {
34 this.$.iframe.src = ui.urlForEmbeddedFlakinessDashboard(this.test.testNa me, this.test.step); 35 this.$.iframe.src = ui.urlForEmbeddedFlakinessDashboard(this.test.testNa me, this.test.step, this.tree);
35 }, 36 },
36 37
37 }); 38 });
38 </script> 39 </script>
39 </polymer-element> 40 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698