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

Side by Side Diff: Tools/GardeningServer/ui/ct-failure-card.html

Issue 469423005: Use the non-deprecated way to set the button labels (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <link rel="import" href="ct-builder-grid.html"> 7 <link rel="import" href="ct-builder-grid.html">
8 <link rel="import" href="ct-commit-list.html"> 8 <link rel="import" href="ct-commit-list.html">
9 <link rel="import" href="ct-test-list.html"> 9 <link rel="import" href="ct-test-list.html">
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 </style> 64 </style>
65 <ct-builder-grid failures="{{ group.failures }}"></ct-builder-grid> 65 <ct-builder-grid failures="{{ group.failures }}"></ct-builder-grid>
66 <div id="failure" class="{{ { snoozed: group.isSnoozed } | tokenList }}"> 66 <div id="failure" class="{{ { snoozed: group.isSnoozed } | tokenList }}">
67 <ct-test-list tests="{{ group.failures }}" tree="{{ tree }}"></ct-test-lis t> 67 <ct-test-list tests="{{ group.failures }}" tree="{{ tree }}"></ct-test-lis t>
68 <ct-commit-list first="{{ group.failures[0].lastPassingRevisions }}" 68 <ct-commit-list first="{{ group.failures[0].lastPassingRevisions }}"
69 last="{{ group.failures[0].firstFailingRevisions }}" 69 last="{{ group.failures[0].firstFailingRevisions }}"
70 commits="{{ commits }}"></ct-commit-list> 70 commits="{{ commits }}"></ct-commit-list>
71 </div> 71 </div>
72 <div id="buttons"> 72 <div id="buttons">
73 <paper-button id="examine" on-tap="{{ examine }}">Examine</paper-button> 73 <paper-button id="examine" on-tap="{{ examine }}" label="Examine"></paper- button>
74 <template if="{{ !group.isSnoozed }}"> 74 <template if="{{ !group.isSnoozed }}">
75 <paper-button id="snooze" on-tap="{{ snooze }}">Snooze</paper-button> 75 <paper-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></paper-b utton>
76 </template> 76 </template>
77 <template if="{{ group.isSnoozed }}"> 77 <template if="{{ group.isSnoozed }}">
78 <paper-button id="snooze" on-tap="{{ unsnooze }}">Unsnooze</paper-button > 78 <paper-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></pap er-button>
79 </template> 79 </template>
80 </div> 80 </div>
81 </template> 81 </template>
82 <script> 82 <script>
83 Polymer({ 83 Polymer({
84 group: null, 84 group: null,
85 commits: {}, 85 commits: {},
86 tree: '', 86 tree: '',
87 87
88 examine: function() { 88 examine: function() {
89 this.fire('ct-examine-failures', this.group); 89 this.fire('ct-examine-failures', this.group);
90 }, 90 },
91 91
92 snooze: function() { 92 snooze: function() {
93 this.group.snoozeUntil(Date.now() + 60 * 60 * 1000); 93 this.group.snoozeUntil(Date.now() + 60 * 60 * 1000);
94 }, 94 },
95 95
96 unsnooze: function() { 96 unsnooze: function() {
97 this.group.unsnooze(); 97 this.group.unsnooze();
98 }, 98 },
99 }); 99 });
100 </script> 100 </script>
101 </polymer-element> 101 </polymer-element>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698