| Index: appengine/sheriff_o_matic/ui/ct-embedded-flakiness-dashboard.html
|
| diff --git a/appengine/sheriff_o_matic/ui/ct-embedded-flakiness-dashboard.html b/appengine/sheriff_o_matic/ui/ct-embedded-flakiness-dashboard.html
|
| index c5170b92d849cfef9ffce5abb32661a60d299ecf..82c0e7e1d18b27abc067ac2a832333a590af9cfe 100644
|
| --- a/appengine/sheriff_o_matic/ui/ct-embedded-flakiness-dashboard.html
|
| +++ b/appengine/sheriff_o_matic/ui/ct-embedded-flakiness-dashboard.html
|
| @@ -2,11 +2,8 @@
|
| 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.
|
| --->
|
| -
|
| -<polymer-element name="ct-embedded-flakiness-dashboard" attributes="test">
|
| - <template>
|
| - <style>
|
| +--><html><head><dom-module id="ct-embedded-flakiness-dashboard">
|
| + <style>
|
| :host {
|
| display: block;
|
| }
|
| @@ -15,26 +12,31 @@ found in the LICENSE file.
|
| width: 100%;
|
| }
|
| </style>
|
| - <iframe id="iframe" flex></iframe>
|
| + <template>
|
| + <iframe id="iframe" flex=""></iframe>
|
| </template>
|
| <script>
|
| Polymer({
|
| - test: "",
|
| -
|
| - ready: function() {
|
| - window.addEventListener('message', function(event) {
|
| + is: 'ct-embedded-flakiness-dashboard',
|
| + properties: {
|
| + test: {
|
| + type: String,
|
| + value: '',
|
| + notify: true,
|
| + observer: 'testChanged'
|
| + }
|
| + },
|
| + ready: function () {
|
| + window.addEventListener('message', function (event) {
|
| if (event.data.command != 'heightChanged')
|
| return;
|
| -
|
| this.$.iframe.style.height = event.data.height + 'px';
|
| }.bind(this));
|
| },
|
| -
|
| - testChanged: function() {
|
| + testChanged: function () {
|
| // Use location.replace so we don't create extraneous history events.
|
| this.$.iframe.contentWindow.location.replace(this.test.embeddedFlakinessDashboardURL());
|
| - },
|
| -
|
| + }
|
| });
|
| </script>
|
| -</polymer-element>
|
| +</dom-module>
|
|
|