Existing reference shows the stored baseline, and Proposed reference shows this test run. Diff highlights changed pixels.

{% macro picture(data, label, empty, id, description) %}
{{ label }}
{% if data %}
{{ label }}: {{ description }}
{% else %}

{{ empty }}

{% endif %}
{% endmacro %} {% macro diff_cell(cell, kind, marker) %} {% if cell %} {{ cell.number }}
{% if cell.changed %}{{ marker }}{% else %} {% endif %}{{ cell.text }}{% if cell.no_newline %}\ No newline at end of file{% endif %}
{% else %}{% endif %} {% endmacro %} {% for description, status in results %} {% set failed = status.failure or status.timeout %} {% if full or failed %} {% set name = description | join(" / ") %} {% set layout_changed = status.baseline != null and status.existing_blf != null and status.baseline != status.existing_blf %} {% set passed = status.success or (completed and status.success == null and status.baseline != null) %}
{% if failed %}Failed{% elif status.skipped %}Skipped{% elif passed %}Passed{% else %}No failure recorded{% endif %} {% if layout_changed %}Layout changed{% endif %}

{{ name }}

{% if status.baseline_name %}test/baselines/{{ platform }}/{{ status.baseline_name }}.{blf,png}{% else %}No baseline filename recorded{% endif %} {% if status.image or status.reference or status.image_diff %} {% endif %}
{{ picture(status.reference, "Existing reference", "No reference image recorded", "reference-" + loop.index, name) }} {{ picture(status.image, "Proposed reference", "No current image recorded", "current-" + loop.index, name) }} {{ picture(status.image_diff, "Diff", "No image difference recorded", "diff-" + loop.index, name) }}
Layout baseline · {% if status.baseline == null %}No current layout recorded{% elif status.existing_blf == null %}No reference layout recorded{% elif layout_changed %}Changed{% else %}Unchanged{% endif %}
{% if layout_changed %} {% set diff = layout_diff(status.existing_blf, status.baseline) %}
{% for hunk in diff.hunks %} {% for row in hunk.rows %} {{ diff_cell(row.left, "diff-removed", "-") }}{{ diff_cell(row.right, "diff-added", "+") }} {% endfor %} {% endfor %}
− Existing reference+ Proposed reference
@@ -{{ hunk.oldStart - 1 if hunk.oldLines == 0 else hunk.oldStart }},{{ hunk.oldLines }} @@@@ +{{ hunk.newStart - 1 if hunk.newLines == 0 else hunk.newStart }},{{ hunk.newLines }} @@

− Existing reference+ Proposed reference

{% for hunk in diff.hunks %}@@ -{{ hunk.oldStart - 1 if hunk.oldLines == 0 else hunk.oldStart }},{{ hunk.oldLines }} +{{ hunk.newStart - 1 if hunk.newLines == 0 else hunk.newStart }},{{ hunk.newLines }} @@{% for line in hunk.lines %}{{ line }}{% endfor %}{% endfor %}
{% elif status.baseline != null %}
{% if status.existing_blf == null %}Proposed reference layout · No reference recorded{% else %}Layout baseline · Identical in both versions{% endif %}
{{ status.baseline }}
{% elif status.existing_blf != null %}
Existing reference layout · No current layout recorded
{{ status.existing_blf }}
{% else %}

No layout baselines recorded

{% endif %}
{% endif %} {% endfor %}
{% if total == 0 %}

No results recorded

This report contains no test results.

{% elif not full and failures == 0 %}

No failures recorded

Open All results to inspect the images and layouts in this report.

{% endif %}