Exemplo n.º 1
0
 /**
  * The image should be redownloaded when the src attribute changes.
  *
  * @throws Exception if the test fails
  */
 @Test
 public void redownloadOnSrcAttributeChanged() throws Exception {
   final HtmlImage htmlimage = getHtmlElementToTest("image1");
   final ImageReader imagereader = htmlimage.getImageReader();
   htmlimage.setAttribute("src", htmlimage.getAttribute("src") + "#changed");
   Assert.assertFalse(
       "Src attribute changed but ImageReader was not reloaded",
       imagereader.equals(htmlimage.getImageReader()));
 }