Make WordPress Core


Ignore:
Timestamp:
11/24/2014 08:56:36 PM (10 years ago)
Author:
boonebgorges
Message:

Fix the unit tests for Imagick alpha.

These tests were written to use the assertImageAtAlpha() helper method, whose
internals were specific to GD. As a result, the tests could not pass. This
changeset introduces GD- and Imagick-specific versions of this method.

Props voldemortensen.
Fixes #24871.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/editor_gd.php

    r29834 r30549  
    473473        $editor->save( $save_to_file );
    474474
    475         $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 );
     475        $this->assertImageAlphaAtPointGD( $save_to_file, array( 0,0 ), 127 );
    476476
    477477        unlink( $save_to_file );
     
    496496        $editor->save( $save_to_file );
    497497
    498         $this->assertImageAlphaAtPoint( $save_to_file, array( 0,0 ), 127 );
     498        $this->assertImageAlphaAtPointGD( $save_to_file, array( 0,0 ), 127 );
    499499
    500500        unlink( $save_to_file );
Note: See TracChangeset for help on using the changeset viewer.