From: Matti Tahvonen Date: Mon, 22 Sep 2008 09:40:47 +0000 (+0000) Subject: added test case X-Git-Tag: 6.7.0.beta1~4125 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=79a7c5989b3b8380609e533d1ec0479336066ebc;p=vaadin-framework.git added test case svn changeset:5474/svn branch:trunk --- diff --git a/WebContent/statictestfiles/ticket2095.html b/WebContent/statictestfiles/ticket2095.html new file mode 100644 index 0000000000..228c9e0dab --- /dev/null +++ b/WebContent/statictestfiles/ticket2095.html @@ -0,0 +1,25 @@ + + + + + +

+This is file is part of test case for #2095. Embedded.TYPE_BROWSER like iframes +wants to have name, so popups opened by them may submit forms into them. + +

+ + +Open popup, will hit debuggger; + + + + \ No newline at end of file diff --git a/WebContent/statictestfiles/ticket2095_popup.html b/WebContent/statictestfiles/ticket2095_popup.html new file mode 100644 index 0000000000..863b35ad4f --- /dev/null +++ b/WebContent/statictestfiles/ticket2095_popup.html @@ -0,0 +1,24 @@ + + + + + + + + +

Popup +

+ +
+ + +
+ + + + \ No newline at end of file diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket2095.java b/src/com/itmill/toolkit/tests/tickets/Ticket2095.java new file mode 100644 index 0000000000..bf0b834939 --- /dev/null +++ b/src/com/itmill/toolkit/tests/tickets/Ticket2095.java @@ -0,0 +1,28 @@ +package com.itmill.toolkit.tests.tickets; + +import com.itmill.toolkit.Application; +import com.itmill.toolkit.terminal.ExternalResource; +import com.itmill.toolkit.ui.Embedded; +import com.itmill.toolkit.ui.Window; + +public class Ticket2095 extends Application { + + public void init() { + Window w = new Window(getClass().getSimpleName()); + setMainWindow(w); + + // uncomment to workaround iorderedlayout bug in current trunk + // w.setLayout(new ExpandLayout()); + w.getLayout().setSizeFull(); + + Embedded em = new Embedded(); + em.setType(Embedded.TYPE_BROWSER); + em.setSource(new ExternalResource("/statictestfiles/ticket2095.html")); + em.setDebugId("MYIFRAME"); + + em.setSizeFull(); + + w.addComponent(em); + + } +}