| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |