Changeset 12512 for trunk/psLib/test/types
- Timestamp:
- Mar 19, 2007, 5:31:39 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/types/tap_psPixels_all.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/types/tap_psPixels_all.c
r12331 r12512 273 273 } 274 274 275 psPixels *outPixels = NULL;276 {275 { 276 psPixels *outPixels = NULL; 277 277 outPixels = psPixelsFromMask(outPixels, outImage, maskVal); 278 278 ok ( outPixels != NULL, … … 281 281 } 282 282 283 //Return NULL for NULL image input 284 { 285 psPixels *outPixels = psPixelsFromMask(outPixels, NULL, maskVal); 283 // Return NULL for NULL image input 284 { 285 psPixels *outPixels = NULL; 286 outPixels = psPixelsFromMask(outPixels, NULL, maskVal); 286 287 ok ( outPixels == NULL, 287 288 "psPixelsFromMask: return NULL for NULL image input."); 288 289 } 289 //Return NULL for image with wrong maskType 290 291 // Return NULL for image with wrong maskType 290 292 *(psElemType*)&(outImage->type.type) = PS_TYPE_U32; 291 293 { 292 psPixels *outPixels = psPixelsFromMask(outPixels, outImage, maskVal); 294 psPixels *outPixels = NULL; 295 outPixels = psPixelsFromMask(outPixels, outImage, maskVal); 293 296 ok ( outPixels == NULL, 294 297 "psPixelsFromMask: return NULL for image with wrong maskType."); 295 298 } 296 299 297 //psPixelsConcatenate Tests 298 //Return NULL for NULL pixels input 299 { 300 psPixels *outPixels = psPixelsConcatenate(outPixels, NULL); 300 // psPixelsConcatenate Tests 301 // Return NULL for NULL pixels input 302 { 303 psPixels *outPixels = NULL; 304 outPixels = psPixelsConcatenate(outPixels, NULL); 301 305 ok ( outPixels == NULL, 302 306 "psPixelsConcatenate: return NULL for NULL pixels input."); … … 306 310 //Return copy of input pixels for NULL out pixels 307 311 { 312 psPixels *outPixels = NULL; 308 313 outPixels = psPixelsFromMask(outPixels, outImage, maskVal); 309 314 outPixels = psPixelsConcatenate(outPixels, p0); … … 313 318 psFree(outPixels); 314 319 } 320 315 321 //Return properly concatenated psPixels list 316 322 //Set all the compare cases to cover 'comparePixelCoord' as well. 317 outPixels = psPixelsAlloc(5);323 psPixels *outPixels = psPixelsAlloc(5); 318 324 in.x = 1.0; 319 325 in.y = 1.0;
Note:
See TracChangeset
for help on using the changeset viewer.
