HBASE-18341 (addendum) Replace '.' in test names with '_' when using them as html ids since
dot have special significance in CSS selectors. Without it, we weren't able to select elements and add svg (trends columns) to them. Change-Id: Ia63ff0851f0a2fad0789a24edf2f0ad00060d578
This commit is contained in:
parent
7d007eac98
commit
7d08c78103
|
@ -156,7 +156,8 @@ Legend : green: success, red: failed, yellow: timeout, blue: hanging
|
||||||
<td align="middle">
|
<td align="middle">
|
||||||
{{ failed|length }} / {{ timeout|length }} / {{ hanging|length }}
|
{{ failed|length }} / {{ timeout|length }} / {{ hanging|length }}
|
||||||
</td>
|
</td>
|
||||||
{% set sparkline_id = "sparkline_" ~ test ~ "_" ~ url_counter %}
|
{# Replace '.' in test names with '_' because dots are part of css selectors. #}
|
||||||
|
{% set sparkline_id = "sparkline_" ~ test|replace(".","_") ~ "_" ~ url_counter %}
|
||||||
<td id="{{ sparkline_id }}" align="middle">
|
<td id="{{ sparkline_id }}" align="middle">
|
||||||
</td>
|
</td>
|
||||||
<script>sparkline("{{ sparkline_id }}", "{{ failed|join(',') }}", "{{ timeout|join(',') }}",
|
<script>sparkline("{{ sparkline_id }}", "{{ failed|join(',') }}", "{{ timeout|join(',') }}",
|
||||||
|
|
Loading…
Reference in New Issue