Beispiel #1
0
  public void testGetWidth3() {
    Properties p = new Properties();
    String w = "100px";
    p.setProperty("width", w);
    Attributes a = new Attributes(p);

    ImgTag it = new ImgTag(id, parent, a);
    assertEquals(it.getWidth(), w);
  }
Beispiel #2
0
 public void testGetWidth2() {
   ImgTag it = new ImgTag(id, parent, attributes);
   assertEquals(it.getWidth(), width);
 }
Beispiel #3
0
 public void testGetWidth1() {
   ImgTag it = new ImgTag(id, parent, new Attributes(new Properties()));
   assertNull(it.getWidth());
 }