| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 This in an HTML Import-able file that contains the definition | 2 This in an HTML Import-able file that contains the definition |
| 3 of the following elements: | 3 of the following elements: |
| 4 | 4 |
| 5 <bot-page-summary> | 5 <bot-page-summary> |
| 6 | 6 |
| 7 Usage: | 7 Usage: |
| 8 | 8 |
| 9 <bot-page-summary></bot-page-summary> | 9 <bot-page-summary></bot-page-summary> |
| 10 | 10 |
| 11 This element shows a summary of all the tasks run on this bot. It attempts t
o |
| 12 find commonalities in the names and shorten them to save screen space. |
| 13 |
| 14 For example, if the there are two tasks: |
| 15 Performance-Linux-Foo-Clang |
| 16 Performance-Linux-Bar-GCC |
| 17 |
| 18 The summary will (optionally) truncate these to |
| 19 ...Foo-Clang |
| 20 ...Bar-GCC |
| 21 |
| 22 The summary includes information like total number of failures, average dura
tion, |
| 23 and more. |
| 24 |
| 11 Properties: | 25 Properties: |
| 12 None. | 26 None. |
| 13 | 27 |
| 14 Methods: | 28 Methods: |
| 15 None. | 29 None. |
| 16 | 30 |
| 17 Events: | 31 Events: |
| 18 None. | 32 None. |
| 19 --> | 33 --> |
| 20 <link rel="import" href="/res/imp/bower_components/paper-checkbox/paper-checkbox
.html"> | 34 <link rel="import" href="/res/imp/bower_components/paper-checkbox/paper-checkbox
.html"> |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 }, | 337 }, |
| 324 | 338 |
| 325 _compare: function(a,b) { | 339 _compare: function(a,b) { |
| 326 if (!this._sort) { | 340 if (!this._sort) { |
| 327 return 0; | 341 return 0; |
| 328 } | 342 } |
| 329 var dir = 1; | 343 var dir = 1; |
| 330 if (this._sort.direction === "desc") { | 344 if (this._sort.direction === "desc") { |
| 331 dir = -1; | 345 dir = -1; |
| 332 } | 346 } |
| 333 return dir * swarming.naturalCompare(a[this._sort.name], b[this._sort.na
me]); | 347 return dir * naturalSort(a[this._sort.name], b[this._sort.name]); |
| 334 }, | 348 }, |
| 335 | 349 |
| 336 _countTasks: function(){ | 350 _countTasks: function(){ |
| 337 return this._taskStats.length <= SHOW_LIMIT; | 351 return this._taskStats.length <= SHOW_LIMIT; |
| 338 }, | 352 }, |
| 339 | 353 |
| 340 _makeSortObject: function(sortstr){ | 354 _makeSortObject: function(sortstr){ |
| 341 if (!sortstr) { | 355 if (!sortstr) { |
| 342 return undefined; | 356 return undefined; |
| 343 } | 357 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 369 } | 383 } |
| 370 e.preventDefault(); | 384 e.preventDefault(); |
| 371 e.stopPropagation(); | 385 e.stopPropagation(); |
| 372 this.set("_sortstr", e.detail.name + ":" + e.detail.direction); | 386 this.set("_sortstr", e.detail.name + ":" + e.detail.direction); |
| 373 }, | 387 }, |
| 374 | 388 |
| 375 }); | 389 }); |
| 376 })(); | 390 })(); |
| 377 </script> | 391 </script> |
| 378 </dom-module> | 392 </dom-module> |
| OLD | NEW |