Index: build/android/pylib/results/presentation/javascript/main_html.js |
diff --git a/build/android/pylib/results/presentation/javascript/main_html.js b/build/android/pylib/results/presentation/javascript/main_html.js |
index b8f80f487f0c07e10ca30098894d33088d634a03..3d94663e33f1b8bf44eda7483c7835650d3b2ffc 100644 |
--- a/build/android/pylib/results/presentation/javascript/main_html.js |
+++ b/build/android/pylib/results/presentation/javascript/main_html.js |
@@ -88,7 +88,7 @@ function sortByColumn(head) { |
// Determine whether to asc or desc and set arrows. |
var headers = head.parentNode.getElementsByTagName('th'); |
var headIndex = Array.prototype.slice.call(headers).indexOf(head); |
- var asc = 1; |
+ var asc = -1; |
for (var i = 0; i < headers.length; i++) { |
if (headers[i].dataset.ascSorted != 0) { |
if (headers[i].dataset.ascSorted == 1) { |
@@ -187,3 +187,7 @@ function sortByColumn(head) { |
table.appendChild(rowBlocks[i]); |
} |
} |
+ |
+function sortSuiteTableByFailedTestCases() { |
+ sortByColumn(document.getElementById('number_fail_tests')); |
the real yoland
2017/05/12 19:09:43
potential future improvements: there are a lot of
|
+} |