Changeset 6346


Ignore:
Timestamp:
05/19/10 09:55:37 (10 years ago)
Author:
bdezonia
Message:

simplified MemoryRecordTest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/test/loci/plugins/in/ImporterTest.java

    r6344 r6346  
    3636//      range step by 0 
    3737//      BF/imageJ returning wrong max num pixels for UINT32 - off by one 
    38 //      memoryRecord failure needs BF code fix? 
     38//      memoryRecord failure needs BF code fix 
    3939//      mergeOptions BF api for finishing merge tests 
    4040//      custom color BF api for doing that test 
     
    708708  private void memoryRecordModificationsTest(boolean wantToRemember) 
    709709  { 
    710     int x = 50, y = 40, z = 3, c = 1, t = 1; 
     710    int x = 50, y = 15, z = 3, c = 1, t = 1; 
    711711    String path = constructFakeFilename("memRec", FormatTools.UINT8, x, y, z, c, t, -1, false, -1, false); 
    712712    ImagePlus[] imps = null; 
     
    739739 
    740740    imp.setSlice(1); 
    741     assertEquals(10,(int)imp.getProcessor().getPixelValue(10,25)); 
     741    assertEquals(1,(int)imp.getProcessor().getPixelValue(1,10)); 
    742742 
    743743    // run a plugin whose changes are recorded 
     
    745745    IJ.run("Flip Horizontally","slice"); 
    746746 
    747     assertEquals(39,(int)imp.getProcessor().getPixelValue(10,25)); 
     747    assertEquals(48,(int)imp.getProcessor().getPixelValue(1,10)); 
    748748    imp.setSlice(2); 
    749     assertEquals(10,(int)imp.getProcessor().getPixelValue(10,25)); 
     749    assertEquals(1,(int)imp.getProcessor().getPixelValue(1,10)); 
    750750    imp.setSlice(1); 
    751     int expectedVal = wantToRemember ? 39 : 10; 
    752     assertEquals(expectedVal,(int)imp.getProcessor().getPixelValue(10,25)); 
     751    int expectedVal = wantToRemember ? 48 : 1; 
     752    assertEquals(expectedVal,(int)imp.getProcessor().getPixelValue(1,10)); 
    753753  } 
    754754   
Note: See TracChangeset for help on using the changeset viewer.