xref: /aosp_15_r20/external/cronet/build/android/pylib/results/presentation/template/main.html (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1<!DOCTYPE html>
2<html>
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5    <style>
6      body {
7        background-color: #fff;
8        color: #333;
9        font-family: Verdana, sans-serif;
10        font-size: 10px;
11        margin-left: 30px;
12        margin-right: 30px;
13        margin-top: 20px;
14        margin-bottom: 50px;
15        padding: 0;
16      }
17      table, th, td {
18        border: 1px solid black;
19        border-collapse: collapse;
20        text-align: center;
21      }
22      table, td {
23        padding: 0.1em 1em 0.1em 1em;
24      }
25      th {
26        cursor: pointer;
27        padding: 0.2em 1.5em 0.2em 1.5em;
28      }
29      table {
30        width: 100%;
31      }
32      .center {
33        text-align: center;
34      }
35      .left {
36        text-align: left;
37      }
38      a {
39        cursor: pointer;
40        text-decoration: underline;
41      }
42      a:link,a:visited,a:active {
43        color: #444;
44      }
45      .row_block:hover {
46        background-color: #F6F6F6;
47      }
48      .skipped, .success, .failure {
49        border-color: #000000;
50      }
51      .success {
52        color: #000;
53        background-color: #8d4;
54      }
55      .failure {
56        color: #000;
57        background-color: #e88;
58      }
59      .skipped {
60        color: #000;
61        background: #AADDEE;
62      }
63    </style>
64    <script type="text/javascript">
65      {% include "javascript/main_html.js" %}
66    </script>
67  </head>
68  <body>
69    <div>
70      <h2 id="summary-header"></h2>
71      {% for tb_value in tb_values %}
72        {% include 'template/table.html' %}
73      {% endfor %}
74    </div>
75  {% if feedback_url %}
76    </br>
77      <a href="{{feedback_url}}" target="_blank"><b>Feedback</b></a>
78    </body>
79  {%- endif %}
80  <script>
81    sortSuiteTableByFailedTestCases();
82    showSuiteTableOnlyWithReplaceState();
83    // Enable sorting for each column of tables.
84    Array.prototype.slice.call(document.getElementsByTagName('th'))
85        .forEach(function(head) {
86            head.addEventListener(
87                "click",
88                function() { sortByColumn(head); });
89        }
90    );
91    setBrowserBackButtonLogic();
92  </script>
93</html>
94