Browse Source

DebugTools: use ANSI text file instead of a terminal screenshot.

pull/225/head
Vladimír Vondruš 9 years ago
parent
commit
36f5030ffd
  1. 31
      doc/snippets/debugtools-compareimage.ansi
  2. BIN
      doc/snippets/debugtools-compareimage.png
  3. 2
      src/Magnum/DebugTools/CompareImage.h

31
doc/snippets/debugtools-compareimage.ansi

@ -0,0 +1,31 @@
Starting ProcessingTest with 1 test cases...
 FAIL [1] process() at …/debugtools-compareimage.cpp on line 77
Images actual and expected have max delta above threshold, actual 189 but at most 170 expected. Mean delta 13.5776 is below threshold 96. Delta image:
| |
| |
| ~8070DNMN8$ZD7 |
| ?I0: :++~. .I0Z |
| 7I ?$D8ZZ0DZ8, +? |
| ~+ +I ,7NZZ$ |
| : ~ |
| . . |
| , : |
| ~. +. +ID8?. |
| ?. .Z0: +0I :7 |
| .$$. ~D8$Z0DZ. =Z+ |
| =8$DI=,. .:+ZDI$ |
| :70DNMND$+. |
| |
| |
Top 10 out of 66 pixels above max/mean threshold:
[16,5] #000000ff, expected #fcfcfcff (Δ = 189)
[16,27] #fbfbfbff, expected #000000ff (Δ = 188.25)
[15,27] #f2f2f2ff, expected #000000ff (Δ = 181.5)
[17,5] #000000ff, expected #f1f1f1ff (Δ = 180.75)
[15,5] #000000ff, expected #efefefff (Δ = 179.25)
[17,27] #eeeeeeff, expected #000000ff (Δ = 178.5)
[22,20] #000000ff, expected #e7e7e7ff (Δ = 173.25)
[18,23] #060606ff, expected #eaeaeaff (Δ = 171)
[18,9] #e5e5e5ff, expected #040404ff (Δ = 168.75)
[21,26] #efefefff, expected #0f0f0fff (Δ = 168)
Finished ProcessingTest with 1 errors out of 1 checks.

BIN
doc/snippets/debugtools-compareimage.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

2
src/Magnum/DebugTools/CompareImage.h

@ -97,7 +97,7 @@ To be used with @ref Corrade::TestSuite. Basic use is really simple:
Based on actual images used, in case of commparison failure the comparator can Based on actual images used, in case of commparison failure the comparator can
give for example the following result: give for example the following result:
@image html debugtools-compareimage.png @include debugtools-compareimage.ansi
Supports the following formats: Supports the following formats:

Loading…
Cancel
Save