Ignore:
Timestamp:
Mar 26, 2011, 5:47:02 PM (13 years ago)
Author:
mlg
Message:

Fixes one major display bug
There were displays bugs with the horizontal splitpane where trying to resize it.
I have fixed by changing the original scale (1.0 to 0.99). Don't know why I had to do this, bug it seems to fix the bug
Fixes an other bug in the image browser : the image list was kept when browsing through the different categories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/test/java/fr/mael/jiwigo/service/ServicesTest.java

    r9431 r9878  
    11package fr.mael.jiwigo.service;
     2
     3import java.util.List;
    24
    35import org.junit.Test;
     
    68import fr.mael.jiwigo.TestBase;
    79import fr.mael.jiwigo.om.Category;
     10import fr.mael.jiwigo.om.Comment;
    811import fr.mael.jiwigo.om.Image;
    912
     
    2528
    2629        Image image = ImageService.getInstance(Main.sessionManager).listByCategory(cat.getIdentifier(), true).get(0);
    27         int firstCount = CommentService.getInstance(Main.sessionManager).list(image.getIdentifier()).size();
     30        List<Comment> comments = CommentService.getInstance(Main.sessionManager).list(image.getIdentifier());
     31        //      int firstCount = comments.size();
    2832        CommentService.getInstance(Main.sessionManager).create("comment test", image.getIdentifier(), "none");
    29         int secondCount = CommentService.getInstance(Main.sessionManager).list(image.getIdentifier()).size();
     33        //      int secondCount = CommentService.getInstance(Main.sessionManager).list(image.getIdentifier()).size();
    3034        //      Assert.assertSame(firstCount + 1, secondCount);
    3135    }
Note: See TracChangeset for help on using the changeset viewer.