diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-05-08 05:45:31 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-05-08 05:45:31 +0000 |
commit | 97cc597383edab9c3aa39ddc7b823c2d2cfdfd14 (patch) | |
tree | 46724a4e4e6fd5d670bf01e8b2a4b33a0f84376f /src/com/itmill/toolkit | |
parent | 315088ba06f155e1dbb61dca5e686d41fcc81aad (diff) | |
download | vaadin-framework-97cc597383edab9c3aa39ddc7b823c2d2cfdfd14.tar.gz vaadin-framework-97cc597383edab9c3aa39ddc7b823c2d2cfdfd14.zip |
Test case for #2913
svn changeset:7662/svn branch:6.0
Diffstat (limited to 'src/com/itmill/toolkit')
-rw-r--r-- | src/com/itmill/toolkit/tests/components/absolutelayout/AbsoluteLayoutClipping.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/tests/components/absolutelayout/AbsoluteLayoutClipping.java b/src/com/itmill/toolkit/tests/components/absolutelayout/AbsoluteLayoutClipping.java new file mode 100644 index 0000000000..b43d005274 --- /dev/null +++ b/src/com/itmill/toolkit/tests/components/absolutelayout/AbsoluteLayoutClipping.java @@ -0,0 +1,42 @@ +package com.itmill.toolkit.tests.components.absolutelayout; + +import com.itmill.toolkit.tests.components.TestBase; +import com.itmill.toolkit.ui.AbsoluteLayout; +import com.itmill.toolkit.ui.Label; + +public class AbsoluteLayoutClipping extends TestBase { + + @Override + protected void setup() { + setTheme("tests-tickets"); + AbsoluteLayout abs = new AbsoluteLayout(); + abs.setStyleName("borders"); + abs.setWidth("100px"); + abs.setHeight("100px"); + + Label l = new Label("This should be clipped at 100px"); + l.setSizeUndefined(); + abs.addComponent(l, "top:50px;left:50px"); + + Label l2 = new Label("This should not be visible"); + l2.setSizeUndefined(); + abs.addComponent(l2, "top:80px;left:150px"); + + Label l3 = new Label("This should be clipped vertically at 100px"); + l3.setWidth("50px"); + abs.addComponent(l3, "top:20px;left:0px"); + + addComponent(abs); + } + + @Override + protected String getDescription() { + return "An AbsoluteLayout with fixed size should clip at its borders. Nothing outside the black square should be visible."; + } + + @Override + protected Integer getTicketNumber() { + return 2913; + } + +} |