OLD | NEW |
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"> |
8 <template> | 8 <template> |
9 <style> | 9 <style> |
10 :host { | 10 :host { |
(...skipping 13 matching lines...) Expand all Loading... |
24 ready: function() { | 24 ready: function() { |
25 window.addEventListener('message', function(event) { | 25 window.addEventListener('message', function(event) { |
26 if (event.data.command != 'heightChanged') | 26 if (event.data.command != 'heightChanged') |
27 return; | 27 return; |
28 | 28 |
29 this.$.iframe.style.height = event.data.height + 'px'; | 29 this.$.iframe.style.height = event.data.height + 'px'; |
30 }.bind(this)); | 30 }.bind(this)); |
31 }, | 31 }, |
32 | 32 |
33 testChanged: function() { | 33 testChanged: function() { |
34 this.$.iframe.src = ui.urlForEmbeddedFlakinessDashboard([this.test]); | 34 this.$.iframe.src = ui.urlForEmbeddedFlakinessDashboard(this.test.testNa
me, this.test.step); |
35 }, | 35 }, |
36 | 36 |
37 }); | 37 }); |
38 </script> | 38 </script> |
39 </polymer-element> | 39 </polymer-element> |
OLD | NEW |