1 Series of tests to ensure correct results on applying different blend modes when drawing text.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Testing blend mode source-over
7 FAIL actualColor(4, 4)[0] should be within 5 of 255. Was 129.
8 FAIL actualColor(4, 4)[1] should be within 5 of 129. Was 255.
9 PASS actualColor(4, 4)[2] is within 5 of 129
10 PASS actualColor(4, 4)[3] is within 5 of 255
12 Testing blend mode multiply
13 PASS actualColor(4, 4)[0] is within 5 of 129
14 FAIL actualColor(4, 4)[1] should be within 5 of 129. Was 255.
15 FAIL actualColor(4, 4)[2] should be within 5 of 65.25882352941176. Was 129.
16 PASS actualColor(4, 4)[3] is within 5 of 255
18 Testing blend mode screen
19 FAIL actualColor(4, 4)[0] should be within 5 of 255. Was 129.
20 PASS actualColor(4, 4)[1] is within 5 of 255
21 FAIL actualColor(4, 4)[2] should be within 5 of 192.74117647058821. Was 129.
22 PASS actualColor(4, 4)[3] is within 5 of 255
24 Testing blend mode overlay
25 FAIL actualColor(4, 4)[0] should be within 5 of 255. Was 129.
26 PASS actualColor(4, 4)[1] is within 5 of 255
27 PASS actualColor(4, 4)[2] is within 5 of 130.48235294117646
28 PASS actualColor(4, 4)[3] is within 5 of 255
30 Testing blend mode darken
31 PASS actualColor(4, 4)[0] is within 5 of 129
32 FAIL actualColor(4, 4)[1] should be within 5 of 129. Was 255.
33 PASS actualColor(4, 4)[2] is within 5 of 129
34 PASS actualColor(4, 4)[3] is within 5 of 255
36 Testing blend mode lighten
37 FAIL actualColor(4, 4)[0] should be within 5 of 255. Was 129.
38 PASS actualColor(4, 4)[1] is within 5 of 255
39 PASS actualColor(4, 4)[2] is within 5 of 129
40 PASS actualColor(4, 4)[3] is within 5 of 255
42 Testing blend mode color-dodge
43 FAIL actualColor(4, 4)[0] should be within 5 of 255. Was 129.
44 PASS actualColor(4, 4)[1] is within 5 of 255
45 FAIL actualColor(4, 4)[2] should be within 5 of 255. Was 129.
46 PASS actualColor(4, 4)[3] is within 5 of 255
48 Testing blend mode color-burn
49 PASS actualColor(4, 4)[0] is within 5 of 129
50 PASS actualColor(4, 4)[1] is within 5 of 255
51 FAIL actualColor(4, 4)[2] should be within 5 of 5.930232558139517. Was 129.
52 PASS actualColor(4, 4)[3] is within 5 of 255
54 Testing blend mode hard-light
55 FAIL actualColor(4, 4)[0] should be within 5 of 255. Was 129.
56 PASS actualColor(4, 4)[1] is within 5 of 255
57 PASS actualColor(4, 4)[2] is within 5 of 130.48235294117646
58 PASS actualColor(4, 4)[3] is within 5 of 255
60 Testing blend mode soft-light
61 FAIL actualColor(4, 4)[0] should be within 5 of 181.3697880023021. Was 129.
62 PASS actualColor(4, 4)[1] is within 5 of 255
63 PASS actualColor(4, 4)[2] is within 5 of 129.61611515296823
64 PASS actualColor(4, 4)[3] is within 5 of 255
66 Testing blend mode difference
67 PASS actualColor(4, 4)[0] is within 5 of 126
68 FAIL actualColor(4, 4)[1] should be within 5 of 126. Was 255.
69 FAIL actualColor(4, 4)[2] should be within 5 of 0. Was 129.
70 PASS actualColor(4, 4)[3] is within 5 of 255
72 Testing blend mode exclusion
73 PASS actualColor(4, 4)[0] is within 5 of 126
74 FAIL actualColor(4, 4)[1] should be within 5 of 126. Was 255.
75 PASS actualColor(4, 4)[2] is within 5 of 127.48235294117649
76 PASS actualColor(4, 4)[3] is within 5 of 255
78 Testing blend mode hue
79 FAIL actualColor(4, 4)[0] should be within 5 of 255. Was 129.
80 FAIL actualColor(4, 4)[1] should be within 5 of 181. Was 255.
81 FAIL actualColor(4, 4)[2] should be within 5 of 181. Was 129.
82 PASS actualColor(4, 4)[3] is within 5 of 255
84 Testing blend mode saturation
85 PASS actualColor(4, 4)[0] is within 5 of 129
86 PASS actualColor(4, 4)[1] is within 5 of 255
87 PASS actualColor(4, 4)[2] is within 5 of 129
88 PASS actualColor(4, 4)[3] is within 5 of 255
90 Testing blend mode color
91 FAIL actualColor(4, 4)[0] should be within 5 of 255. Was 129.
92 FAIL actualColor(4, 4)[1] should be within 5 of 181. Was 255.
93 FAIL actualColor(4, 4)[2] should be within 5 of 181. Was 129.
94 PASS actualColor(4, 4)[3] is within 5 of 255
96 Testing blend mode luminosity
97 FAIL actualColor(4, 4)[0] should be within 5 of 92. Was 129.
98 FAIL actualColor(4, 4)[1] should be within 5 of 218. Was 255.
99 FAIL actualColor(4, 4)[2] should be within 5 of 92. Was 129.
100 PASS actualColor(4, 4)[3] is within 5 of 255
102 PASS successfullyParsed is true