aboutsummaryrefslogtreecommitdiff
path: root/_includes/result_footer.html
blob: e7e58594323fb416a723d2bfb5d71c03a9b16aac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

<span style="font-size: 1.2em; font-weight: bold;">Legend</span>
<ul>
	<li><i class="fas fa-list"></i>: Displays either a toggle icon for a test that is composed of several tests, or a depth of a simple test.
    <li><b>Test result:</b> The high-level result of a test of a group of tests. This signifies whether the test passed or not.</li>
    <li><b>Description:</b> A short description of what the test or a group of tests did.</li>
    <li><b>Result:</b> The concrete result of a test or a group of tests. Can be one of: <br/>
        <ul>
            <li><code>SUCCESS</code> - <i class="fas fa-check" title="This is OK."></i> - The test was expected to pass and it did.</li>
            <li><code>FAILURE</code> - <i class="fas fa-times" title="This is NOT OK."></i> - The test was expected to pass but it failed.</li>
            <li><code>UXSUCCESS</code> - <i class="fas fa-times" title="This is NOT OK."></i> - The test was expected to fail but it succeeded.</li>
            <li><code>XFAILURE</code> - <i class="fas fa-check" title="This is OK."></i> - The test was expected to fail and it did.</li>
            <li><code>ERROR</code> - <i class="fas fa-exclamation-triangle" title="This is weird, maybe an ECTester bug."></i> - There was an <i>unexpected</i> error while running the test.</li>
        </ul>
    </li>
</ul>

{% assign cat_name = page.categories | sample | downcase | replace:" ", "-" %}
<span style="font-size: 1.2em; font-weight: bold;">Other test runs</span>
<br/>
{% assign device_name = page.id | split:"/" | shift | shift | shift | sample %}
{% for result in site.results %}
	{% assign file_name = result.id | split:"/" | shift | shift %}
	{% assign result_name = file_name | shift | sample %}
	{% assign category_name = file_name | reverse | shift | sample %}
	{% if device_name == result_name and category_name != cat_name %}
		<a href="{{ site.baseurl }}{{ result.url }}" class="btn body-btn">{{ category_name }}</a>
	{% endif %}
{% endfor %}