Пример #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);
  }
Пример #2
0
  public void testGetHeight3() {
    Properties p = new Properties();
    String h = "50px;";
    p.setProperty("height", h);
    Attributes a = new Attributes(p);

    ImgTag it = new ImgTag(id, parent, a);
    assertEquals(it.getHeight(), h);
  }
Пример #3
0
 public void testGetWidth2() {
   ImgTag it = new ImgTag(id, parent, attributes);
   assertEquals(it.getWidth(), width);
 }
Пример #4
0
 public void testGetWidth1() {
   ImgTag it = new ImgTag(id, parent, new Attributes(new Properties()));
   assertNull(it.getWidth());
 }
Пример #5
0
 public void testGetLongdesc2() {
   ImgTag it = new ImgTag(id, parent, attributes);
   assertEquals(it.getLongdesc(), longdesc);
 }
Пример #6
0
 public void testGetLongdesc1() {
   ImgTag it = new ImgTag(id, parent, new Attributes(new Properties()));
   assertNull(it.getAlt());
 }
Пример #7
0
 public void testGetAlt2() {
   ImgTag it = new ImgTag(id, parent, attributes);
   assertEquals(it.getAlt(), alt);
 }
Пример #8
0
 public void testGetHeight2() {
   ImgTag it = new ImgTag(id, parent, attributes);
   assertEquals(it.getHeight(), height);
 }