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

Side by Side Diff: build/android/pylib/results/presentation/template/main.html

Issue 2875803004: Sort suites in suite table based on number of failed test cases. (Closed)
Patch Set: call sort by column in js instead Created 3 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <link rel="stylesheet" href="https://storage.googleapis.com/chromium-result- details/css/default.css" type="text/css"> 5 <link rel="stylesheet" href="https://storage.googleapis.com/chromium-result- details/css/default.css" type="text/css">
6 <style> 6 <style>
7 table, th, td { 7 table, th, td {
8 border: 1px solid black; 8 border: 1px solid black;
9 border-collapse: collapse; 9 border-collapse: collapse;
10 } 10 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 <div class="content"> 45 <div class="content">
46 <h2 id="summary-header"></h2> 46 <h2 id="summary-header"></h2>
47 {% for tb_value in tb_values %} 47 {% for tb_value in tb_values %}
48 {% include 'template/table.html' %} 48 {% include 'template/table.html' %}
49 {% endfor %} 49 {% endfor %}
50 </div> 50 </div>
51 </br> 51 </br>
52 <a href="{{feedback_url}}" target="_blank"><b>Feedback</b></a> 52 <a href="{{feedback_url}}" target="_blank"><b>Feedback</b></a>
53 </body> 53 </body>
54 <script> 54 <script>
55 sortSuiteTableByFailedTestCases();
55 showSuiteTableOnlyWithReplaceState(); 56 showSuiteTableOnlyWithReplaceState();
56 // Enable sorting for each column of tables. 57 // Enable sorting for each column of tables.
57 Array.prototype.slice.call(document.getElementsByTagName('th')) 58 Array.prototype.slice.call(document.getElementsByTagName('th'))
58 .forEach(function(head) { 59 .forEach(function(head) {
59 head.addEventListener( 60 head.addEventListener(
60 "click", 61 "click",
61 function() { sortByColumn(head); }); 62 function() { sortByColumn(head); });
62 } 63 }
63 ); 64 );
64 setBrowserBackButtonLogic(); 65 setBrowserBackButtonLogic();
65 </script> 66 </script>
66 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698