Changeset 6270


Ignore:
Timestamp:
05/11/10 12:32:25 (10 years ago)
Author:
bdezonia
Message:

fixed bug in splits tests

File:
1 edited

Legend:

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

    r6269 r6270  
    2525//  - flesh out existing tests 
    2626//      splits - see if for loops are in correct order by comparing to actual data 
    27 //      write tests for the color options : 4 cases 
     27//      write tests for the color options : 4 cases - some mention that indexcolor an issue 
    2828//      open individual files: try to come up with a way to test without a disk file as source 
    2929//      concatenate - test order of images in stack? 
     
    281281 
    282282    int count = 0; 
    283     //if (debug) 
    284     //  System.out.println(order); 
     283    //System.out.println(order); 
    285284    Axis fastest = axis(order,0); 
    286285    Axis middle = axis(order,1); 
     
    294293        { 
    295294          ImageProcessor proc = st.getProcessor(count+1); 
    296           //if (debug) 
    297           //  printVals(proc); 
     295          //printVals(proc); 
    298296          assertNotNull(proc); 
    299297          assertEquals(x,proc.getWidth()); 
     
    728726  { 
    729727    // TODO - how to test this? lowest priority 
     728     
     729    // outline 
     730    //   open as virt stack 
     731    //   run plugin or macro that changes pixels in currently loaded frame (frame 0) 
     732    //   change curr frame to 1 and test that pixels are different from what we set 
     733    //   change curr frame back to 0 and see if pixel changes remembered 
     734     
    730735    fail("to be implemented"); 
    731736  } 
     
    871876          ImageStack st = imps[i].getStack(); 
    872877          assertEquals(15,st.getSize()); 
    873           ImageProcessor proc = st.getProcessor(j+1); 
     878          ImageProcessor proc = st.getProcessor(i+1); 
    874879          // test the values 
    875880          assertEquals(0,zIndex(proc));  // this one should always be 0 
     
    909914          ImageStack st = imps[k].getStack(); 
    910915          assertEquals(21,st.getSize()); 
    911           ImageProcessor proc = st.getProcessor(j+1); 
     916          ImageProcessor proc = st.getProcessor(k+1); 
    912917          // test the values 
    913918          assertEquals(i,zIndex(proc)); 
Note: See TracChangeset for help on using the changeset viewer.