From: Matti Tahvonen Date: Mon, 8 Dec 2008 10:51:47 +0000 (+0000) Subject: test case for #2287 and #2297 X-Git-Tag: 6.7.0.beta1~3644 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aabb83ade260fc7c54b2c81542e2b6bf568e01bc;p=vaadin-framework.git test case for #2287 and #2297 svn changeset:6114/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket2287.java b/src/com/itmill/toolkit/tests/tickets/Ticket2287.java new file mode 100644 index 0000000000..76eb590724 --- /dev/null +++ b/src/com/itmill/toolkit/tests/tickets/Ticket2287.java @@ -0,0 +1,40 @@ +package com.itmill.toolkit.tests.tickets; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.net.URL; + +import com.itmill.toolkit.ui.CustomLayout; +import com.itmill.toolkit.ui.Label; +import com.itmill.toolkit.ui.Window; + +public class Ticket2287 extends Ticket2292 { + + public void init() { + final Window main = new Window(getClass().getName().substring( + getClass().getName().lastIndexOf(".") + 1)); + setMainWindow(main); + URL url = getURL(); + main + .addComponent(new Label( + "Icon is built by servlet with a slow method, so it will show the bug (components not firing requestLayout).")); + + Label l = new Label(); + l.setContentMode(Label.CONTENT_XHTML); + l.setValue("This is a label with as slow image. "); + main.addComponent(l); + + try { + CustomLayout cl = new CustomLayout( + new ByteArrayInputStream( + ("This is an empty CustomLayout with as slow image. ") + .getBytes())); + main.addComponent(cl); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } +} \ No newline at end of file