1 Verify readPixels() works fine with various PACK_ALIGNMENT values.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
5 PASS gl = initWebGL('example', 'vshader', 'fshader', [ 'pos', 'colorIn' ], [ 0, 0, 0, 1 ], 1) is non-null.
6 Testing format = RGBA and type = UNSIGNED_BYTE
7 Testing PACK_ALIGNMENT = 1, width = 1, height = 2
8 PASS getError was expected value: NO_ERROR :
9 PASS getError was expected value: NO_ERROR :
10 PASS 255,102,0,255 is non-null.
11 PASS pixel is expectedColor
12 Testing PACK_ALIGNMENT = 2, width = 1, height = 2
13 PASS getError was expected value: NO_ERROR :
14 PASS getError was expected value: NO_ERROR :
15 PASS 255,102,0,255 is non-null.
16 PASS pixel is expectedColor
17 Testing PACK_ALIGNMENT = 4, width = 1, height = 2
18 PASS getError was expected value: NO_ERROR :
19 PASS getError was expected value: NO_ERROR :
20 PASS 255,102,0,255 is non-null.
21 PASS pixel is expectedColor
22 Testing PACK_ALIGNMENT = 8, width = 1, height = 2
23 PASS getError was expected value: NO_ERROR :
24 PASS getError was expected value: NO_ERROR :
25 PASS 255,102,0,255 is non-null.
26 PASS pixel is expectedColor
27 Testing PACK_ALIGNMENT = 4, width = 2, height = 2
28 PASS getError was expected value: NO_ERROR :
29 PASS getError was expected value: NO_ERROR :
30 PASS 255,102,0,255 is non-null.
31 PASS pixel is expectedColor
32 Testing PACK_ALIGNMENT = 8, width = 2, height = 2
33 PASS getError was expected value: NO_ERROR :
34 PASS getError was expected value: NO_ERROR :
35 PASS 255,102,0,255 is non-null.
36 PASS pixel is expectedColor
37 Testing PACK_ALIGNMENT = 4, width = 3, height = 2
38 PASS getError was expected value: NO_ERROR :
39 PASS getError was expected value: NO_ERROR :
40 PASS 255,102,0,255 is non-null.
41 PASS pixel is expectedColor
42 Testing PACK_ALIGNMENT = 8, width = 3, height = 2
43 PASS getError was expected value: NO_ERROR :
44 PASS getError was expected value: NO_ERROR :
45 PASS 255,102,0,255 is non-null.
46 PASS pixel is expectedColor
47 Testing PACK_ALIGNMENT = 4, width = 4, height = 2
48 PASS getError was expected value: NO_ERROR :
49 PASS getError was expected value: NO_ERROR :
50 PASS 255,102,0,255 is non-null.
51 PASS pixel is expectedColor
52 Testing PACK_ALIGNMENT = 8, width = 4, height = 2
53 PASS getError was expected value: NO_ERROR :
54 PASS getError was expected value: NO_ERROR :
55 PASS 255,102,0,255 is non-null.
56 PASS pixel is expectedColor
57 Testing PACK_ALIGNMENT = 8, width = 5, height = 1
58 PASS getError was expected value: NO_ERROR :
59 PASS getError was expected value: NO_ERROR :
60 PASS 255,102,0,255 is non-null.
61 PASS pixel is expectedColor
62 Testing PACK_ALIGNMENT = 4, width = 5, height = 2
63 PASS getError was expected value: NO_ERROR :
64 PASS getError was expected value: NO_ERROR :
65 PASS 255,102,0,255 is non-null.
66 PASS pixel is expectedColor
67 Testing PACK_ALIGNMENT = 8, width = 5, height = 2
68 PASS getError was expected value: NO_ERROR :
69 PASS getError was expected value: NO_ERROR :
70 PASS 255,102,0,255 is non-null.
71 PASS pixel is expectedColor
72 Testing PACK_ALIGNMENT = 8, width = 6, height = 2
73 PASS getError was expected value: NO_ERROR :
74 PASS getError was expected value: NO_ERROR :
75 PASS 255,102,0,255 is non-null.
76 PASS pixel is expectedColor
77 Testing PACK_ALIGNMENT = 8, width = 7, height = 2
78 PASS getError was expected value: NO_ERROR :
79 PASS getError was expected value: NO_ERROR :
80 PASS 255,102,0,255 is non-null.
81 PASS pixel is expectedColor
82 Testing PACK_ALIGNMENT = 8, width = 8, height = 2
83 PASS getError was expected value: NO_ERROR :
84 PASS getError was expected value: NO_ERROR :
85 PASS 255,102,0,255 is non-null.
86 PASS pixel is expectedColor
87 Testing PACK_ALIGNMENT = 1, width = 0, height = 0
88 PASS getError was expected value: NO_ERROR :
89 PASS getError was expected value: NO_ERROR :
90 Testing PACK_ALIGNMENT = 2, width = 0, height = 0
91 PASS getError was expected value: NO_ERROR :
92 PASS getError was expected value: NO_ERROR :
93 Testing PACK_ALIGNMENT = 4, width = 0, height = 0
94 PASS getError was expected value: NO_ERROR :
95 PASS getError was expected value: NO_ERROR :
96 Testing PACK_ALIGNMENT = 8, width = 0, height = 0
97 PASS getError was expected value: NO_ERROR :
98 PASS getError was expected value: NO_ERROR :
99 Testing PACK_ALIGNMENT = 1, width = -1, height = 1
100 PASS getError was expected value: NO_ERROR :
101 PASS getError was expected value: INVALID_VALUE :
102 Testing PACK_ALIGNMENT = 2, width = 1, height = -1
103 PASS getError was expected value: NO_ERROR :
104 PASS getError was expected value: INVALID_VALUE :
105 Testing PACK_ALIGNMENT = 4, width = 0, height = -1
106 PASS getError was expected value: NO_ERROR :
107 PASS getError was expected value: INVALID_VALUE :
108 Testing PACK_ALIGNMENT = 8, width = -1, height = -1
109 PASS getError was expected value: NO_ERROR :
110 PASS getError was expected value: INVALID_VALUE :
111 PASS successfullyParsed is true