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

Side by Side Diff: appengine/swarming/ui/res/imp/taskpage/task-page-data.html

Issue 2503083002: Fix task-page docs and clarify output returning nothing (Closed)
Patch Set: Created 4 years, 1 month 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 | « appengine/swarming/ui/res/imp/taskpage/task-page.html ('k') | 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 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 5
6 This in an HTML Import-able file that contains the definition 6 This in an HTML Import-able file that contains the definition
7 of the following elements: 7 of the following elements:
8 8
9 <task-page-data> 9 <task-page-data>
10 10
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 // Make the duration human readable 195 // Make the duration human readable
196 if (result.duration){ 196 if (result.duration){
197 result.human_duration = this._humanDuration(result.duration); 197 result.human_duration = this._humanDuration(result.duration);
198 } 198 }
199 return result; 199 return result;
200 }, 200 },
201 201
202 _parseStdout: function(stdout) { 202 _parseStdout: function(stdout) {
203 if (!stdout || !stdout.output) { 203 if (!stdout || !stdout.output) {
204 return "[No output yet]"; 204 return "";
205 } 205 }
206 return stdout.output; 206 return stdout.output;
207 }, 207 },
208 208
209 reloadStdout: function() { 209 reloadStdout: function() {
210 this._getJsonAsync("_stdout", "/api/swarming/v1/task/" + 210 this._getJsonAsync("_stdout", "/api/swarming/v1/task/" +
211 this.task_id + "/stdout", "_busy3", this.auth_headers); 211 this.task_id + "/stdout", "_busy3", this.auth_headers);
212 }, 212 },
213 213
214 }); 214 });
215 })(); 215 })();
216 </script> 216 </script>
217 </dom-module> 217 </dom-module>
OLDNEW
« no previous file with comments | « appengine/swarming/ui/res/imp/taskpage/task-page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698