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

Unified Diff: appengine/sheriff_o_matic/ui/ct-embedded-flakiness-dashboard.html

Issue 1315693002: SoM: upgrade Polymer from 0.5 to 1.0 Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: get bower_components from polymer_1.0.4 Created 5 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 side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « appengine/sheriff_o_matic/ui/ct-detailed-commit.html ('k') | appengine/sheriff_o_matic/ui/ct-failure-card-buttons.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698