Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Tools / GardeningServer / ui / ct-embedded-flakiness-dashboard.html
1 <!--
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
4 found in the LICENSE file.
5 -->
6
7 <polymer-element name="ct-embedded-flakiness-dashboard" attributes="test tree">
8   <template>
9     <style>
10       :host {
11         display: block;
12       }
13       #iframe {
14         border: none;
15         width: 100%;
16       }
17     </style>
18     <iframe id="iframe"></iframe>
19   </template>
20   <script>
21     Polymer({
22       test: "",
23       tree: "",
24
25       ready: function() {
26         window.addEventListener('message', function(event) {
27           if (event.data.command != 'heightChanged')
28             return;
29
30           this.$.iframe.style.height = event.data.height + 'px';
31         }.bind(this));
32       },
33
34       testChanged: function() {
35         this.$.iframe.src = this.test.embeddedFlakinessDashboardURL(this.tree);
36       },
37
38     });
39   </script>
40 </polymer-element>