Package com.vaadin.tests.components.abstractembedded

Source Code of com.vaadin.tests.components.abstractembedded.EmbeddedWithNullSource

package com.vaadin.tests.components.abstractembedded;

import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.AbstractEmbedded;
import com.vaadin.ui.BrowserFrame;
import com.vaadin.ui.Flash;
import com.vaadin.ui.Image;

public class EmbeddedWithNullSource extends TestBase {

    @Override
    protected void setup() {
        AbstractEmbedded e;

        e = new Image("Image w/o alt text");
        addComponent(e);

        e = new Image("Image w/ alt text");
        e.setAlternateText("Image");
        addComponent(e);

        e = new Flash("Flash w/o alt text");
        addComponent(e);

        e = new Flash("Flash w/ alt text");
        e.setAlternateText("Flash");
        addComponent(e);

        e = new BrowserFrame("BrowserFrame w/o alt text");
        addComponent(e);

        e = new BrowserFrame("BrowserFrame w/ alt text");
        e.setAlternateText("BrowserFrame");
        addComponent(e);

    }

    @Override
    protected String getDescription() {
        return "Image without a source causes a client-side NPE";
    }

    @Override
    protected Integer getTicketNumber() {
        return 10101;
    }

}
TOP

Related Classes of com.vaadin.tests.components.abstractembedded.EmbeddedWithNullSource

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.