blob: f5b447db73ceb3b6ae6c69df97aacde3ce1f7e2d [file] [log] [blame]
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +00001Series of tests to ensure correct results on applying different blend modes when drawing a gradient on top of a color.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
commit-queue@webkit.org144b3222013-08-09 17:35:12 +00006Running test in non accelerated mode
7
8Testing blend mode source-over
9PASS actualColor(0, 0)[0] is within 5 of 255
10PASS actualColor(0, 0)[1] is within 5 of 129
11PASS actualColor(0, 0)[2] is within 5 of 129
12PASS actualColor(0, 0)[3] is within 5 of 255
13
14Testing blend mode multiply
15PASS actualColor(0, 0)[0] is within 5 of 129
16PASS actualColor(0, 0)[1] is within 5 of 129
17PASS actualColor(0, 0)[2] is within 5 of 65.25882352941176
18PASS actualColor(0, 0)[3] is within 5 of 255
19
20Testing blend mode screen
21PASS actualColor(0, 0)[0] is within 5 of 255
22PASS actualColor(0, 0)[1] is within 5 of 255
23PASS actualColor(0, 0)[2] is within 5 of 192.74117647058821
24PASS actualColor(0, 0)[3] is within 5 of 255
25
26Testing blend mode overlay
27PASS actualColor(0, 0)[0] is within 5 of 255
28PASS actualColor(0, 0)[1] is within 5 of 255
29PASS actualColor(0, 0)[2] is within 5 of 130.48235294117646
30PASS actualColor(0, 0)[3] is within 5 of 255
31
32Testing blend mode darken
33PASS actualColor(0, 0)[0] is within 5 of 129
34PASS actualColor(0, 0)[1] is within 5 of 129
35PASS actualColor(0, 0)[2] is within 5 of 129
36PASS actualColor(0, 0)[3] is within 5 of 255
37
38Testing blend mode lighten
39PASS actualColor(0, 0)[0] is within 5 of 255
40PASS actualColor(0, 0)[1] is within 5 of 255
41PASS actualColor(0, 0)[2] is within 5 of 129
42PASS actualColor(0, 0)[3] is within 5 of 255
43
44Testing blend mode color-dodge
45PASS actualColor(0, 0)[0] is within 5 of 255
46PASS actualColor(0, 0)[1] is within 5 of 255
47PASS actualColor(0, 0)[2] is within 5 of 255
48PASS actualColor(0, 0)[3] is within 5 of 255
49
50Testing blend mode color-burn
51PASS actualColor(0, 0)[0] is within 5 of 129
52PASS actualColor(0, 0)[1] is within 5 of 255
53PASS actualColor(0, 0)[2] is within 5 of 5.930232558139517
54PASS actualColor(0, 0)[3] is within 5 of 255
55
56Testing blend mode hard-light
57PASS actualColor(0, 0)[0] is within 5 of 255
58PASS actualColor(0, 0)[1] is within 5 of 255
59PASS actualColor(0, 0)[2] is within 5 of 130.48235294117646
60PASS actualColor(0, 0)[3] is within 5 of 255
61
62Testing blend mode difference
63PASS actualColor(0, 0)[0] is within 5 of 126
64PASS actualColor(0, 0)[1] is within 5 of 126
65PASS actualColor(0, 0)[2] is within 5 of 0
66PASS actualColor(0, 0)[3] is within 5 of 255
67
68Testing blend mode exclusion
69PASS actualColor(0, 0)[0] is within 5 of 126
70PASS actualColor(0, 0)[1] is within 5 of 126
71PASS actualColor(0, 0)[2] is within 5 of 127.48235294117649
72PASS actualColor(0, 0)[3] is within 5 of 255
73
74Running test in hardware accelerated mode
75
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +000076Testing blend mode source-over
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +000077PASS actualColor(0, 0)[0] is within 5 of 255
78PASS actualColor(0, 0)[1] is within 5 of 129
79PASS actualColor(0, 0)[2] is within 5 of 129
80PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +000081
82Testing blend mode multiply
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +000083PASS actualColor(0, 0)[0] is within 5 of 129
84PASS actualColor(0, 0)[1] is within 5 of 129
85PASS actualColor(0, 0)[2] is within 5 of 65.25882352941176
86PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +000087
88Testing blend mode screen
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +000089PASS actualColor(0, 0)[0] is within 5 of 255
90PASS actualColor(0, 0)[1] is within 5 of 255
91PASS actualColor(0, 0)[2] is within 5 of 192.74117647058821
92PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +000093
94Testing blend mode overlay
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +000095PASS actualColor(0, 0)[0] is within 5 of 255
96PASS actualColor(0, 0)[1] is within 5 of 255
97PASS actualColor(0, 0)[2] is within 5 of 130.48235294117646
98PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +000099
100Testing blend mode darken
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +0000101PASS actualColor(0, 0)[0] is within 5 of 129
102PASS actualColor(0, 0)[1] is within 5 of 129
103PASS actualColor(0, 0)[2] is within 5 of 129
104PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +0000105
106Testing blend mode lighten
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +0000107PASS actualColor(0, 0)[0] is within 5 of 255
108PASS actualColor(0, 0)[1] is within 5 of 255
109PASS actualColor(0, 0)[2] is within 5 of 129
110PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +0000111
112Testing blend mode color-dodge
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +0000113PASS actualColor(0, 0)[0] is within 5 of 255
114PASS actualColor(0, 0)[1] is within 5 of 255
115PASS actualColor(0, 0)[2] is within 5 of 255
116PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +0000117
118Testing blend mode color-burn
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +0000119PASS actualColor(0, 0)[0] is within 5 of 129
120PASS actualColor(0, 0)[1] is within 5 of 255
121PASS actualColor(0, 0)[2] is within 5 of 5.930232558139517
122PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +0000123
124Testing blend mode hard-light
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +0000125PASS actualColor(0, 0)[0] is within 5 of 255
126PASS actualColor(0, 0)[1] is within 5 of 255
127PASS actualColor(0, 0)[2] is within 5 of 130.48235294117646
128PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +0000129
130Testing blend mode difference
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +0000131PASS actualColor(0, 0)[0] is within 5 of 126
132PASS actualColor(0, 0)[1] is within 5 of 126
133PASS actualColor(0, 0)[2] is within 5 of 0
134PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +0000135
136Testing blend mode exclusion
commit-queue@webkit.org7887c4d2013-08-05 14:23:05 +0000137PASS actualColor(0, 0)[0] is within 5 of 126
138PASS actualColor(0, 0)[1] is within 5 of 126
139PASS actualColor(0, 0)[2] is within 5 of 127.48235294117649
140PASS actualColor(0, 0)[3] is within 5 of 255
commit-queue@webkit.orgc5178be2013-08-02 18:42:51 +0000141
142PASS successfullyParsed is true
143
144TEST COMPLETE
145