WordPress.org

Make WordPress Core

Changeset 402 in tests


Ignore:
Timestamp:
08/04/2011 07:59:07 PM (7 years ago)
Author:
duck_
Message:

Fixes for TestImageSizeFunctions. medium_size_h isn't unconstrained, the 'full' size "has no constraints".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_image.php

    r393 r402  
    278278        $content_width = 0;
    279279        update_option('medium_size_w', 500);
     280        update_option('medium_size_h', 0);
    280281       
    281282        $out = image_constrain_size_for_editor(600, 400, 'medium');
     
    292293        $out = image_constrain_size_for_editor(600, 400, 'medium');
    293294        $this->assertEquals(array(500, 333), $out);
    294 
    295295    }
    296296
     
    299299        $content_width = 400;
    300300        $out = image_constrain_size_for_editor(600, 400, 'full');
    301         $this->assertEquals(array(400, 266), $out);
     301        $this->assertEquals(array(600, 400), $out);
    302302       
    303303        $out = image_constrain_size_for_editor(64, 64, 'full');
     
    308308
    309309        $out = image_constrain_size_for_editor(600, 400, 'full');
    310         $this->assertEquals(array(500, 333), $out);
     310        $this->assertEquals(array(600, 400), $out);
    311311       
    312312        $out = image_constrain_size_for_editor(64, 64, 'full');
    313313        $this->assertEquals(array(64, 64), $out);
    314        
    315     }
    316 
     314    }
    317315   
    318316}
Note: See TracChangeset for help on using the changeset viewer.