File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 365
365
366
366
it ( 'Should adjust constraints to new coordinates' , function ( done ) {
367
367
expect ( loadImage ( blobGIF , function ( img ) {
368
- expect ( img . width ) . to . equal ( 60 )
369
- expect ( img . height ) . to . equal ( 80 )
368
+ expect ( img . width ) . to . equal ( 30 )
369
+ expect ( img . height ) . to . equal ( 40 )
370
370
done ( )
371
- } , { orientation : 6 , maxWidth : 60 , maxHeight : 80 } ) ) . to . be . ok
371
+ } , { orientation : 6 , maxWidth : 30 , maxHeight : 40 } ) ) . to . be . ok
372
372
} )
373
373
374
374
it ( 'Should adjust left and top to new coordinates' , function ( done ) {
449
449
done ( )
450
450
} , { orientation : true } ) ) . to . be . ok
451
451
} )
452
+
453
+ it ( 'Should adjust constraints based on the exif orientation value' , function ( done ) {
454
+ expect ( loadImage ( blobJPEG , function ( img ) {
455
+ expect ( img . width ) . to . equal ( 10 )
456
+ expect ( img . height ) . to . equal ( 20 )
457
+ done ( )
458
+ } , { orientation : true , minWidth : 10 , minHeight : 20 } ) ) . to . be . ok
459
+ } )
452
460
} )
453
461
454
462
describe ( 'Canvas' , function ( ) {
You can’t perform that action at this time.
0 commit comments