Search in sources :

Example 1 with ImagePrototypeElement

use of com.google.gwt.user.client.ui.AbstractImagePrototype.ImagePrototypeElement in project gwt-test-utils by gwt-test-utils.

the class MenuBarImagesTest method createElement.

@Test
public void createElement() {
    // Given
    AbstractImagePrototype proto = menuBarImages.menuBarSubMenuIcon();
    // When
    ImagePrototypeElement element = proto.createElement();
    // Then
    assertThat(element.getTagName()).isEqualTo("IMG");
    assertThat(element.toString()).isEqualTo("<img onload=\"this.__gwtLastUnhandledEvent=\"load\";\" src=\"http://127.0.0.1:8888/gwt_test_utils_module/clear.cache.gif\" style=\"width: 0px; height: 0px; background:url(http://127.0.0.1: 8888/gwt_test_utils_module/menuBarSubMenuIcon.gif) no-repeat 0px 0px; \" border=\"0\"></img>");
}
Also used : AbstractImagePrototype(com.google.gwt.user.client.ui.AbstractImagePrototype) ImagePrototypeElement(com.google.gwt.user.client.ui.AbstractImagePrototype.ImagePrototypeElement) Test(org.junit.Test)

Aggregations

AbstractImagePrototype (com.google.gwt.user.client.ui.AbstractImagePrototype)1 ImagePrototypeElement (com.google.gwt.user.client.ui.AbstractImagePrototype.ImagePrototypeElement)1 Test (org.junit.Test)1