summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/webgl/read-pixels-test-expected.txt
blob: 8986c8873710afe0c29307d607e40ea166f1577f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
Checks that ReadPixels works as expected.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


checking: in range
PASS color pixel at 0, 0 should be about 127.5
PASS color pixel at 0, 0 should be about 178.5
PASS color pixel at 0, 0 should be about 255
PASS color pixel at 0, 0 should be about 255
PASS color pixel at 1, 0 should be about 127.5
PASS color pixel at 1, 0 should be about 178.5
PASS color pixel at 1, 0 should be about 255
PASS color pixel at 1, 0 should be about 255
PASS color pixel at 0, 1 should be about 127.5
PASS color pixel at 0, 1 should be about 178.5
PASS color pixel at 0, 1 should be about 255
PASS color pixel at 0, 1 should be about 255
PASS color pixel at 1, 1 should be about 127.5
PASS color pixel at 1, 1 should be about 178.5
PASS color pixel at 1, 1 should be about 255
PASS color pixel at 1, 1 should be about 255

checking: off top left
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 1, 1 should be about 127.5
PASS color pixel at 1, 1 should be about 178.5
PASS color pixel at 1, 1 should be about 255
PASS color pixel at 1, 1 should be about 255

checking: off bottom right
PASS color pixel at 0, 0 should be about 127.5
PASS color pixel at 0, 0 should be about 178.5
PASS color pixel at 0, 0 should be about 255
PASS color pixel at 0, 0 should be about 255
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0

checking: completely off top 
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0

checking: completely off bottom
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0

checking: completely off left
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0

checking: completeley off right
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 0, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 1, 0 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 0, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS color pixel at 1, 1 should be about 0
PASS getError was expected value: NO_ERROR : there should be no GL errors

check disallowed formats
PASS getError was expected value: INVALID_OPERATION : Should not be able to read as RGB / UNSIGNED_BYTE
PASS getError was expected value: INVALID_OPERATION : Should not be able to read as RGB / UNSIGNED_SHORT_5_6_5
PASS getError was expected value: INVALID_OPERATION : Should not be able to read as RGBA / UNSIGNED_SHORT_5_5_5_1
PASS getError was expected value: INVALID_OPERATION : Should not be able to read as RGBA / UNSIGNED_SHORT_4_4_4_4
PASS getError was expected value: INVALID_OPERATION : Should not be able to read as ALPHA / UNSIGNED_BYTE
PASS getError was expected value: INVALID_ENUM : Should not be able to read as LUMINANCE / UNSIGNED_BYTE
PASS getError was expected value: INVALID_ENUM : Should not be able to read as LUMINANCE_ALPHA / UNSIGNED_BYTE

check reading with lots of drawing
PASS actual is expected
PASS actual is expected
PASS actual is expected
PASS getError was expected value: NO_ERROR : there should be no GL errors

PASS successfullyParsed is true

TEST COMPLETE