123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- {% macro assert(A) -%}
- <div class="event assert v_{{A.verdict}}">
-
- <div class="hint">
- <span class="verdict">{{A.verdict}}</span>{{A.hint}}
- </div>
- {% if A.data %}<pre class="data">{{A.data}}</pre>{% endif %}
- </div>
- {%- endmacro %}
-
- {% macro message(M) -%}
- <div class="event message s_{{M.severity}}">
- <div class="severity">{{M.severity}}</div>
- <pre class="message">{{M.message}}</pre>
- {% if M.data %}<pre class="data">{{M.data}}</pre>{% endif %}
- </div>
- {%- endmacro %}
-
- {% macro phase(P) -%}
- <div class="phase v_{{P.verdict}}">
- <div class="name p_{{P.type}}">
- <span class="verdict">{{P.verdict}}</span>{{P.name}}
- </div>
- {% for e in P.children %}
- {% if e.is_assert %}
- {{ assert(e) }}
- {% elif e.is_message %}
- {{ message(e) }}
- {% endif %}
- {% endfor %}
- </div>
- {%- endmacro %}
-
- <!doctype html>
- <html>
- <head>
- <title>JAT report {{ session.sessid }}</title>
-
- <style type="text/css">
- body {
- color: gray;
- background-color: black;
- margin: 2em;
- }
- .lint { background-color: orange; padding: 1em }
- .phase {
- padding-left: 1em;
- margin-top: 2em;
- margin-bottom: 2em;
- }
- .phase .name { font-weight: bold }
- .phase .verdict { float: right }
- .p_setup { color: orange }
- .p_test { color: yellow }
- .p_diag { color: lightblue }
- .p_cleanup { color: blue }
- .event { border: 1px solid #333 }
- .v_PASS { color: green }
- .v_FAIL { color: red }
- .v_UNKNOWN { color: orange }
- .severity { float: right }
- .s_INFO { color: silver }
- .s_WARNING { color: orange }
- .s_ERROR { color: red }
- </style>
-
- </head>
- <body>
-
- <div class="lints">
- {% for lint in session.lints %}
- <div class="lint">{{ lint.msg }} <code>{{ lint._data }}</code></div>
- {% endfor %}
- </div>
-
- <div class="events">
- {% for e in session.eventtree.children %}
- {% if e.is_phase %}
- {{ phase(e) }}
- {% elif e.is_message %}
- {{ message(e) }}
- {% elif e.is_assert %}
- {{ assert(e) }}
- {% endif %}
- {% endfor %}
- </div>
-
- </body>
- </html>
|