Commit | Line | Data |
7f96d961 |
1 | use strict; |
2 | use warnings; |
3 | use Test::More tests => 1 + 272; # use_ok + constants |
4 | |
5 | BEGIN { use_ok('SDL::Constants') } |
6 | |
7 | # 'use' should have imported all constants |
8 | is( AUDIO_S16, 32784, 'AUDIO_S16 should be imported' ); |
9 | is( AUDIO_S16MSB, 36880, 'AUDIO_S16MSB should be imported' ); |
10 | is( AUDIO_S8, 32776, 'AUDIO_S8 should be imported' ); |
11 | is( AUDIO_U16, 16, 'AUDIO_U16 should be imported' ); |
12 | is( AUDIO_U16MSB, 4112, 'AUDIO_U16MSB should be imported' ); |
13 | is( AUDIO_U8, 8, 'AUDIO_U8 should be imported' ); |
14 | |
15 | is( CD_ERROR, -1, 'CD_ERROR should be imported' ); |
16 | is( CD_PAUSED, 3, 'CD_PAUSED should be imported' ); |
17 | is( CD_PLAYING, 2, 'CD_PLAYING should be imported' ); |
18 | is( CD_STOPPED, 1, 'CD_STOPPED should be imported' ); |
19 | is( CD_TRAYEMPTY, 0, 'CD_TRAYEMPTY should be imported' ); |
20 | |
21 | is( INADDR_ANY, 0, 'INADDR_ANY should be imported' ); |
22 | is( INADDR_NONE, -1, 'INADDR_NONE should be imported' ); |
23 | |
24 | is( KMOD_ALT, 768, 'KMOD_ALT should be imported' ); |
25 | is( KMOD_CAPS, 8192, 'KMOD_CAPS should be imported' ); |
26 | is( KMOD_CTRL, 192, 'KMOD_CTRL should be imported' ); |
27 | is( KMOD_LALT, 256, 'KMOD_LALT should be imported' ); |
28 | is( KMOD_LCTRL, 64, 'KMOD_LCTRL should be imported' ); |
29 | is( KMOD_LSHIFT, 1, 'KMOD_LSHIFT should be imported' ); |
30 | is( KMOD_NONE, 0, 'KMOD_NONE should be imported' ); |
31 | is( KMOD_NUM, 4096, 'KMOD_NUM should be imported' ); |
32 | is( KMOD_RALT, 512, 'KMOD_RALT should be imported' ); |
33 | is( KMOD_RCTRL, 128, 'KMOD_RCTRL should be imported' ); |
34 | is( KMOD_RSHIFT, 2, 'KMOD_RSHIFT should be imported' ); |
35 | is( KMOD_SHIFT, 3, 'KMOD_SHIFT should be imported' ); |
36 | |
37 | is( MIX_DEFAULT_CHANNELS, 2, 'MIX_DEFAULT_CHANNELS should be imported' ); |
38 | is( MIX_DEFAULT_FORMAT, 32784, 'MIX_DEFAULT_FORMAT should be imported' ); |
39 | is( MIX_DEFAULT_FREQUENCY, 22050, 'MIX_DEFAULT_FREQUENCY should be imported' ); |
40 | is( MIX_FADING_IN, 2, 'MIX_FADING_IN should be imported' ); |
41 | is( MIX_FADING_OUT, 1, 'MIX_FADING_OUT should be imported' ); |
42 | is( MIX_MAX_VOLUME, 128, 'MIX_MAX_VOLUME should be imported' ); |
43 | is( MIX_NO_FADING, 0, 'MIX_NO_FADING should be imported' ); |
44 | |
45 | is( SDLK_0, 48, 'SDLK_0 should be imported' ); |
46 | is( SDLK_1, 49, 'SDLK_1 should be imported' ); |
47 | is( SDLK_2, 50, 'SDLK_2 should be imported' ); |
48 | is( SDLK_3, 51, 'SDLK_3 should be imported' ); |
49 | is( SDLK_4, 52, 'SDLK_4 should be imported' ); |
50 | is( SDLK_5, 53, 'SDLK_5 should be imported' ); |
51 | is( SDLK_6, 54, 'SDLK_6 should be imported' ); |
52 | is( SDLK_7, 55, 'SDLK_7 should be imported' ); |
53 | is( SDLK_8, 56, 'SDLK_8 should be imported' ); |
54 | is( SDLK_9, 57, 'SDLK_9 should be imported' ); |
55 | is( SDLK_AMPERSAND, 38, 'SDLK_AMPERSAND should be imported' ); |
56 | is( SDLK_ASTERISK, 42, 'SDLK_ASTERISK should be imported' ); |
57 | is( SDLK_AT, 64, 'SDLK_AT should be imported' ); |
58 | is( SDLK_BACKQUOTE, 96, 'SDLK_BACKQUOTE should be imported' ); |
59 | is( SDLK_BACKSLASH, 92, 'SDLK_BACKSLASH should be imported' ); |
60 | is( SDLK_BACKSPACE, 8, 'SDLK_BACKSPACE should be imported' ); |
61 | is( SDLK_BREAK, 318, 'SDLK_BREAK should be imported' ); |
62 | is( SDLK_CAPSLOCK, 301, 'SDLK_CAPSLOCK should be imported' ); |
63 | is( SDLK_CARET, 94, 'SDLK_CARET should be imported' ); |
64 | is( SDLK_CLEAR, 12, 'SDLK_CLEAR should be imported' ); |
65 | is( SDLK_COLON, 58, 'SDLK_COLON should be imported' ); |
66 | is( SDLK_COMMA, 44, 'SDLK_COMMA should be imported' ); |
67 | is( SDLK_DELETE, 127, 'SDLK_DELETE should be imported' ); |
68 | is( SDLK_DOLLAR, 36, 'SDLK_DOLLAR should be imported' ); |
69 | is( SDLK_DOWN, 274, 'SDLK_DOWN should be imported' ); |
70 | is( SDLK_END, 279, 'SDLK_END should be imported' ); |
71 | is( SDLK_EQUALS, 61, 'SDLK_EQUALS should be imported' ); |
72 | is( SDLK_ESCAPE, 27, 'SDLK_ESCAPE should be imported' ); |
73 | is( SDLK_EURO, 321, 'SDLK_EURO should be imported' ); |
74 | is( SDLK_EXCLAIM, 33, 'SDLK_EXCLAIM should be imported' ); |
75 | is( SDLK_F1, 282, 'SDLK_F1 should be imported' ); |
76 | is( SDLK_F10, 291, 'SDLK_F10 should be imported' ); |
77 | is( SDLK_F11, 292, 'SDLK_F11 should be imported' ); |
78 | is( SDLK_F12, 293, 'SDLK_F12 should be imported' ); |
79 | is( SDLK_F13, 294, 'SDLK_F13 should be imported' ); |
80 | is( SDLK_F14, 295, 'SDLK_F14 should be imported' ); |
81 | is( SDLK_F15, 296, 'SDLK_F15 should be imported' ); |
82 | is( SDLK_F2, 283, 'SDLK_F2 should be imported' ); |
83 | is( SDLK_F3, 284, 'SDLK_F3 should be imported' ); |
84 | is( SDLK_F4, 285, 'SDLK_F4 should be imported' ); |
85 | is( SDLK_F5, 286, 'SDLK_F5 should be imported' ); |
86 | is( SDLK_F6, 287, 'SDLK_F6 should be imported' ); |
87 | is( SDLK_F7, 288, 'SDLK_F7 should be imported' ); |
88 | is( SDLK_F8, 289, 'SDLK_F8 should be imported' ); |
89 | is( SDLK_F9, 290, 'SDLK_F9 should be imported' ); |
90 | is( SDLK_GREATER, 62, 'SDLK_GREATER should be imported' ); |
91 | is( SDLK_HASH, 35, 'SDLK_HASH should be imported' ); |
92 | is( SDLK_HELP, 315, 'SDLK_HELP should be imported' ); |
93 | is( SDLK_HOME, 278, 'SDLK_HOME should be imported' ); |
94 | is( SDLK_INSERT, 277, 'SDLK_INSERT should be imported' ); |
95 | is( SDLK_KP0, 256, 'SDLK_KP0 should be imported' ); |
96 | is( SDLK_KP1, 257, 'SDLK_KP1 should be imported' ); |
97 | is( SDLK_KP2, 258, 'SDLK_KP2 should be imported' ); |
98 | is( SDLK_KP3, 259, 'SDLK_KP3 should be imported' ); |
99 | is( SDLK_KP4, 260, 'SDLK_KP4 should be imported' ); |
100 | is( SDLK_KP5, 261, 'SDLK_KP5 should be imported' ); |
101 | is( SDLK_KP6, 262, 'SDLK_KP6 should be imported' ); |
102 | is( SDLK_KP7, 263, 'SDLK_KP7 should be imported' ); |
103 | is( SDLK_KP8, 264, 'SDLK_KP8 should be imported' ); |
104 | is( SDLK_KP9, 265, 'SDLK_KP9 should be imported' ); |
105 | is( SDLK_KP_DIVIDE, 267, 'SDLK_KP_DIVIDE should be imported' ); |
106 | is( SDLK_KP_ENTER, 271, 'SDLK_KP_ENTER should be imported' ); |
107 | is( SDLK_KP_EQUALS, 272, 'SDLK_KP_EQUALS should be imported' ); |
108 | is( SDLK_KP_MINUS, 269, 'SDLK_KP_MINUS should be imported' ); |
109 | is( SDLK_KP_MULTIPLY, 268, 'SDLK_KP_MULTIPLY should be imported' ); |
110 | is( SDLK_KP_PERIOD, 266, 'SDLK_KP_PERIOD should be imported' ); |
111 | is( SDLK_KP_PLUS, 270, 'SDLK_KP_PLUS should be imported' ); |
112 | is( SDLK_LALT, 308, 'SDLK_LALT should be imported' ); |
113 | is( SDLK_LCTRL, 306, 'SDLK_LCTRL should be imported' ); |
114 | is( SDLK_LEFT, 276, 'SDLK_LEFT should be imported' ); |
115 | is( SDLK_LEFTBRACKET, 91, 'SDLK_LEFTBRACKET should be imported' ); |
116 | is( SDLK_LEFTPAREN, 40, 'SDLK_LEFTPAREN should be imported' ); |
117 | is( SDLK_LESS, 60, 'SDLK_LESS should be imported' ); |
118 | is( SDLK_LMETA, 310, 'SDLK_LMETA should be imported' ); |
119 | is( SDLK_LSHIFT, 304, 'SDLK_LSHIFT should be imported' ); |
120 | is( SDLK_LSUPER, 311, 'SDLK_LSUPER should be imported' ); |
121 | is( SDLK_MENU, 319, 'SDLK_MENU should be imported' ); |
122 | is( SDLK_MINUS, 45, 'SDLK_MINUS should be imported' ); |
123 | is( SDLK_MODE, 313, 'SDLK_MODE should be imported' ); |
124 | is( SDLK_NUMLOCK, 300, 'SDLK_NUMLOCK should be imported' ); |
125 | is( SDLK_PAGEDOWN, 281, 'SDLK_PAGEDOWN should be imported' ); |
126 | is( SDLK_PAGEUP, 280, 'SDLK_PAGEUP should be imported' ); |
127 | is( SDLK_PAUSE, 19, 'SDLK_PAUSE should be imported' ); |
128 | is( SDLK_PERIOD, 46, 'SDLK_PERIOD should be imported' ); |
129 | is( SDLK_PLUS, 43, 'SDLK_PLUS should be imported' ); |
130 | is( SDLK_POWER, 320, 'SDLK_POWER should be imported' ); |
131 | is( SDLK_PRINT, 316, 'SDLK_PRINT should be imported' ); |
132 | is( SDLK_QUESTION, 63, 'SDLK_QUESTION should be imported' ); |
133 | is( SDLK_QUOTE, 39, 'SDLK_QUOTE should be imported' ); |
134 | is( SDLK_QUOTEDBL, 34, 'SDLK_QUOTEDBL should be imported' ); |
135 | is( SDLK_RALT, 307, 'SDLK_RALT should be imported' ); |
136 | is( SDLK_RCTRL, 305, 'SDLK_RCTRL should be imported' ); |
137 | is( SDLK_RETURN, 13, 'SDLK_RETURN should be imported' ); |
138 | is( SDLK_RIGHT, 275, 'SDLK_RIGHT should be imported' ); |
139 | is( SDLK_RIGHTBRACKET, 93, 'SDLK_RIGHTBRACKET should be imported' ); |
140 | is( SDLK_RIGHTPAREN, 41, 'SDLK_RIGHTPAREN should be imported' ); |
141 | is( SDLK_RMETA, 309, 'SDLK_RMETA should be imported' ); |
142 | is( SDLK_RSHIFT, 303, 'SDLK_RSHIFT should be imported' ); |
143 | is( SDLK_RSUPER, 312, 'SDLK_RSUPER should be imported' ); |
144 | is( SDLK_SCROLLOCK, 302, 'SDLK_SCROLLOCK should be imported' ); |
145 | is( SDLK_SEMICOLON, 59, 'SDLK_SEMICOLON should be imported' ); |
146 | is( SDLK_SLASH, 47, 'SDLK_SLASH should be imported' ); |
147 | is( SDLK_SPACE, 32, 'SDLK_SPACE should be imported' ); |
148 | is( SDLK_SYSREQ, 317, 'SDLK_SYSREQ should be imported' ); |
149 | is( SDLK_TAB, 9, 'SDLK_TAB should be imported' ); |
150 | is( SDLK_UNDERSCORE, 95, 'SDLK_UNDERSCORE should be imported' ); |
151 | is( SDLK_UP, 273, 'SDLK_UP should be imported' ); |
152 | is( SDLK_a, 97, 'SDLK_a should be imported' ); |
153 | is( SDLK_b, 98, 'SDLK_b should be imported' ); |
154 | is( SDLK_c, 99, 'SDLK_c should be imported' ); |
155 | is( SDLK_d, 100, 'SDLK_d should be imported' ); |
156 | is( SDLK_e, 101, 'SDLK_e should be imported' ); |
157 | is( SDLK_f, 102, 'SDLK_f should be imported' ); |
158 | is( SDLK_g, 103, 'SDLK_g should be imported' ); |
159 | is( SDLK_h, 104, 'SDLK_h should be imported' ); |
160 | is( SDLK_i, 105, 'SDLK_i should be imported' ); |
161 | is( SDLK_j, 106, 'SDLK_j should be imported' ); |
162 | is( SDLK_k, 107, 'SDLK_k should be imported' ); |
163 | is( SDLK_l, 108, 'SDLK_l should be imported' ); |
164 | is( SDLK_m, 109, 'SDLK_m should be imported' ); |
165 | is( SDLK_n, 110, 'SDLK_n should be imported' ); |
166 | is( SDLK_o, 111, 'SDLK_o should be imported' ); |
167 | is( SDLK_p, 112, 'SDLK_p should be imported' ); |
168 | is( SDLK_q, 113, 'SDLK_q should be imported' ); |
169 | is( SDLK_r, 114, 'SDLK_r should be imported' ); |
170 | is( SDLK_s, 115, 'SDLK_s should be imported' ); |
171 | is( SDLK_t, 116, 'SDLK_t should be imported' ); |
172 | is( SDLK_u, 117, 'SDLK_u should be imported' ); |
173 | is( SDLK_v, 118, 'SDLK_v should be imported' ); |
174 | is( SDLK_w, 119, 'SDLK_w should be imported' ); |
175 | is( SDLK_x, 120, 'SDLK_x should be imported' ); |
176 | is( SDLK_y, 121, 'SDLK_y should be imported' ); |
177 | is( SDLK_z, 122, 'SDLK_z should be imported' ); |
178 | |
179 | is( SDL_ACTIVEEVENT, 1, 'SDL_ACTIVEEVENT should be imported' ); |
180 | is( SDL_ANYFORMAT, 268435456, 'SDL_ANYFORMAT should be imported' ); |
181 | is( SDL_APPACTIVE, 4, 'SDL_APPACTIVE should be imported' ); |
182 | is( SDL_APPINPUTFOCUS, 2, 'SDL_APPINPUTFOCUS should be imported' ); |
183 | is( SDL_APPMOUSEFOCUS, 1, 'SDL_APPMOUSEFOCUS should be imported' ); |
184 | is( SDL_ASYNCBLIT, 4, 'SDL_ASYNCBLIT should be imported' ); |
185 | |
186 | is( SDL_AUDIO_PAUSED, 2, 'SDL_AUDIO_PAUSED should be imported' ); |
187 | is( SDL_AUDIO_PLAYING, 1, 'SDL_AUDIO_PLAYING should be imported' ); |
188 | is( SDL_AUDIO_STOPPED, 0, 'SDL_AUDIO_STOPPED should be imported' ); |
189 | |
190 | is( SDL_BUTTON_LEFT, 1, 'SDL_BUTTON_LEFT should be imported' ); |
191 | is( SDL_BUTTON_MIDDLE, 2, 'SDL_BUTTON_MIDDLE should be imported' ); |
192 | is( SDL_BUTTON_RIGHT, 4, 'SDL_BUTTON_RIGHT should be imported' ); |
193 | is( SDL_BUTTON_WHEELUP, 8, 'SDL_BUTTON_WHEELUP should be imported' ); |
194 | is( SDL_BUTTON_WHEELDOWN, 16, 'SDL_BUTTON_WHEELDOWN should be imported' ); |
195 | |
196 | is( SDL_DOUBLEBUF, 1073741824, 'SDL_DOUBLEBUF should be imported' ); |
197 | is( SDL_ENABLE, 1, 'SDL_ENABLE should be imported' ); |
198 | is( SDL_FULLSCREEN, -2147483648, 'SDL_FULLSCREEN should be imported' ); |
199 | |
200 | is( SDL_GL_ACCUM_ALPHA_SIZE, 11, 'SDL_GL_ACCUM_ALPHA_SIZE should be imported' ); |
201 | is( SDL_GL_ACCUM_BLUE_SIZE, 10, 'SDL_GL_ACCUM_BLUE_SIZE should be imported' ); |
202 | is( SDL_GL_ACCUM_GREEN_SIZE, 9, 'SDL_GL_ACCUM_GREEN_SIZE should be imported' ); |
203 | is( SDL_GL_ACCUM_RED_SIZE, 8, 'SDL_GL_ACCUM_RED_SIZE should be imported' ); |
204 | is( SDL_GL_ALPHA_SIZE, 3, 'SDL_GL_ALPHA_SIZE should be imported' ); |
205 | is( SDL_GL_BLUE_SIZE, 2, 'SDL_GL_BLUE_SIZE should be imported' ); |
206 | is( SDL_GL_BUFFER_SIZE, 4, 'SDL_GL_BUFFER_SIZE should be imported' ); |
207 | is( SDL_GL_DEPTH_SIZE, 6, 'SDL_GL_DEPTH_SIZE should be imported' ); |
208 | is( SDL_GL_DOUBLEBUFFER, 5, 'SDL_GL_DOUBLEBUFFER should be imported' ); |
209 | is( SDL_GL_GREEN_SIZE, 1, 'SDL_GL_GREEN_SIZE should be imported' ); |
210 | is( SDL_GL_RED_SIZE, 0, 'SDL_GL_RED_SIZE should be imported' ); |
211 | is( SDL_GL_STENCIL_SIZE, 7, 'SDL_GL_STENCIL_SIZE should be imported' ); |
212 | |
213 | is( SDL_GRAB_OFF, 0, 'SDL_GRAB_OFF should be imported' ); |
214 | is( SDL_GRAB_ON, 1, 'SDL_GRAB_ON should be imported' ); |
215 | is( SDL_GRAB_QUERY, -1, 'SDL_GRAB_QUERY should be imported' ); |
216 | |
217 | is( SDL_HAT_CENTERED, 0, 'SDL_HAT_CENTERED should be imported' ); |
218 | is( SDL_HAT_DOWN, 4, 'SDL_HAT_DOWN should be imported' ); |
219 | is( SDL_HAT_LEFT, 8, 'SDL_HAT_LEFT should be imported' ); |
220 | is( SDL_HAT_LEFTDOWN, 12, 'SDL_HAT_LEFTDOWN should be imported' ); |
221 | is( SDL_HAT_LEFTUP, 9, 'SDL_HAT_LEFTUP should be imported' ); |
222 | is( SDL_HAT_RIGHT, 2, 'SDL_HAT_RIGHT should be imported' ); |
223 | is( SDL_HAT_RIGHTDOWN, 6, 'SDL_HAT_RIGHTDOWN should be imported' ); |
224 | is( SDL_HAT_RIGHTUP, 3, 'SDL_HAT_RIGHTUP should be imported' ); |
225 | is( SDL_HAT_UP, 1, 'SDL_HAT_UP should be imported' ); |
226 | |
227 | is( SDL_HWACCEL, 256, 'SDL_HWACCEL should be imported' ); |
228 | is( SDL_HWPALETTE, 536870912, 'SDL_HWPALETTE should be imported' ); |
229 | is( SDL_HWSURFACE, 1, 'SDL_HWSURFACE should be imported' ); |
230 | |
231 | is( SDL_IGNORE, 0, 'SDL_IGNORE should be imported' ); |
232 | |
233 | is( SDL_INIT_AUDIO, 16, 'SDL_INIT_AUDIO should be imported' ); |
234 | is( SDL_INIT_CDROM, 256, 'SDL_INIT_CDROM should be imported' ); |
235 | is( SDL_INIT_EVERYTHING, 65535, 'SDL_INIT_EVERYTHING should be imported' ); |
236 | is( SDL_INIT_JOYSTICK, 512, 'SDL_INIT_JOYSTICK should be imported' ); |
237 | is( SDL_INIT_NOPARACHUTE, 1048576, 'SDL_INIT_NOPARACHUTE should be imported' ); |
238 | is( SDL_INIT_TIMER, 1, 'SDL_INIT_TIMER should be imported' ); |
239 | is( SDL_INIT_VIDEO, 32, 'SDL_INIT_VIDEO should be imported' ); |
240 | |
241 | is( SDL_IYUV_OVERLAY, 1448433993, 'SDL_IYUV_OVERLAY should be imported' ); |
242 | |
243 | is( SDL_JOYAXISMOTION, 7, 'SDL_JOYAXISMOTION should be imported' ); |
244 | is( SDL_JOYBALLMOTION, 8, 'SDL_JOYBALLMOTION should be imported' ); |
245 | is( SDL_JOYBUTTONDOWN, 10, 'SDL_JOYBUTTONDOWN should be imported' ); |
246 | is( SDL_JOYBUTTONUP, 11, 'SDL_JOYBUTTONUP should be imported' ); |
247 | is( SDL_JOYHATMOTION, 9, 'SDL_JOYHATMOTION should be imported' ); |
248 | |
249 | is( SDL_KEYDOWN, 2, 'SDL_KEYDOWN should be imported' ); |
250 | is( SDL_KEYUP, 3, 'SDL_KEYUP should be imported' ); |
251 | |
252 | is( SDL_MIX_MAXVOLUME, 128, 'SDL_MIX_MAXVOLUME should be imported' ); |
253 | |
254 | is( SDL_MOUSEBUTTONDOWN, 5, 'SDL_MOUSEBUTTONDOWN should be imported' ); |
255 | is( SDL_MOUSEBUTTONUP, 6, 'SDL_MOUSEBUTTONUP should be imported' ); |
256 | is( SDL_MOUSEMOTION, 4, 'SDL_MOUSEMOTION should be imported' ); |
257 | |
258 | is( SDL_OPENGL, 2, 'SDL_OPENGL should be imported' ); |
259 | is( SDL_OPENGLBLIT, 10, 'SDL_OPENGLBLIT should be imported' ); |
260 | |
261 | is( SDL_PREALLOC, 16777216, 'SDL_PREALLOC should be imported' ); |
262 | is( SDL_PRESSED, 1, 'SDL_PRESSED should be imported' ); |
263 | is( SDL_QUERY, -1, 'SDL_QUERY should be imported' ); |
264 | is( SDL_QUIT, 12, 'SDL_QUIT should be imported' ); |
265 | is( SDL_RELEASED, 0, 'SDL_RELEASED should be imported' ); |
266 | is( SDL_RESIZABLE, 16, 'SDL_RESIZABLE should be imported' ); |
267 | is( SDL_RLEACCEL, 16384, 'SDL_RLEACCEL should be imported' ); |
268 | is( SDL_RLEACCELOK, 8192, 'SDL_RLEACCELOK should be imported' ); |
269 | is( SDL_SRCALPHA, 65536, 'SDL_SRCALPHA should be imported' ); |
270 | is( SDL_SRCCOLORKEY, 4096, 'SDL_SRCCOLORKEY should be imported' ); |
271 | is( SDL_SWSURFACE, 0, 'SDL_SWSURFACE should be imported' ); |
272 | is( SDL_SYSWMEVENT, 13, 'SDL_SYSWMEVENT should be imported' ); |
273 | is( SDL_UYVY_OVERLAY, 1498831189, 'SDL_UYVY_OVERLAY should be imported' ); |
274 | is( SDL_VIDEOEXPOSE, 17, 'SDL_VIDEOEXPOSE should be imported' ); |
275 | is( SDL_VIDEORESIZE, 16, 'SDL_VIDEORESIZE should be imported' ); |
276 | is( SDL_YUY2_OVERLAY, 844715353, 'SDL_YUY2_OVERLAY should be imported' ); |
277 | is( SDL_YV12_OVERLAY, 842094169, 'SDL_YV12_OVERLAY should be imported' ); |
278 | is( SDL_YVYU_OVERLAY, 1431918169, 'SDL_YVYU_OVERLAY should be imported' ); |
279 | |
280 | is( SMPEG_ERROR, -1, 'SMPEG_ERROR should be imported' ); |
281 | is( SMPEG_PLAYING, 1, 'SMPEG_PLAYING should be imported' ); |
282 | is( SMPEG_STOPPED, 0, 'SMPEG_STOPPED should be imported' ); |
283 | |
284 | is( TEXT_BLENDED, 4, 'TEXT_BLENDED should be imported' ); |
285 | is( TEXT_SHADED, 2, 'TEXT_SHADED should be imported' ); |
286 | is( TEXT_SOLID, 1, 'TEXT_SOLID should be imported' ); |
287 | |
288 | is( TTF_STYLE_BOLD, 1, 'TTF_STYLE_BOLD should be imported' ); |
289 | is( TTF_STYLE_ITALIC, 2, 'TTF_STYLE_ITALIC should be imported' ); |
290 | is( TTF_STYLE_NORMAL, 0, 'TTF_STYLE_NORMAL should be imported' ); |
291 | is( TTF_STYLE_UNDERLINE, 4, 'TTF_STYLE_UNDERLINE should be imported' ); |
292 | |
293 | is( UNICODE_BLENDED, 256, 'UNICODE_BLENDED should be imported' ); |
294 | is( UNICODE_SHADED, 128, 'UNICODE_SHADED should be imported' ); |
295 | is( UNICODE_SOLID, 64, 'UNICODE_SOLID should be imported' ); |
296 | |
297 | is( UTF8_BLENDED, 32, 'UTF8_BLENDED should be imported' ); |
298 | is( UTF8_SHADED, 16, 'UTF8_SHADED should be imported' ); |
299 | is( UTF8_SOLID, 8, 'UTF8_SOLID should be imported' ); |
300 | |
301 | is( SDL_SVG_FLAG_DIRECT, 0, 'SDL_SVG_FLAG_DIRECT should be imported' ); |
302 | is( SDL_SVG_FLAG_COMPOSITE, 1, 'SDL_SVG_FLAG_COMPOSITE should be imported' ); |
303 | |
304 | is( SDL_SAMPLEFLAG_NONE, 0, 'SDL_SAMPLEFLAG_NONE should be imported' ); |
305 | is( SDL_SAMPLEFLAG_CANSEEK, 1, 'SDL_SAMPLEFLAG_CANSEEK should be imported' ); |
306 | is( SDL_SAMPLEFLAG_EOF, 1 << 29, 'SDL_SAMPLEFLAG_EOF should be imported' ); |
307 | is( SDL_SAMPLEFLAG_ERROR, 1 << 30, 'SDL_SAMPLEFLAG_ERROR should be imported' ); |
308 | is( SDL_SAMPLEFLAG_EAGAIN, 1 << 31, 'SDL_SAMPLEFLAG_EAGAIN should be imported' ); |
309 | |