diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-10-07 06:29:14 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-10-07 06:29:14 +0000 |
commit | b363c85a7f921e87eb5e8c0ef273a8e6d89bccf6 (patch) | |
tree | 0acab9d8e4c4cdf22fa6b9adf93034623074c749 /src | |
parent | 4c8cce269293787068039a21efafe97ff5358ec0 (diff) | |
download | vaadin-framework-b363c85a7f921e87eb5e8c0ef273a8e6d89bccf6.tar.gz vaadin-framework-b363c85a7f921e87eb5e8c0ef273a8e6d89bccf6.zip |
Modified the test case to be suitable
svn changeset:5600/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/tests/ScrollbarStressTest.java | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/com/itmill/toolkit/tests/ScrollbarStressTest.java b/src/com/itmill/toolkit/tests/ScrollbarStressTest.java index 1c755c6edf..fd2a8ffb49 100644 --- a/src/com/itmill/toolkit/tests/ScrollbarStressTest.java +++ b/src/com/itmill/toolkit/tests/ScrollbarStressTest.java @@ -77,33 +77,36 @@ public class ScrollbarStressTest extends Application { } private void drawInPanel() { + main.removeAllComponents(); OrderedLayout ol = new OrderedLayout(); - ol.setSizeFull(); - main.setLayout(ol); - ol.addComponent(panel); + panel.setLayout(ol); ol = new OrderedLayout(); - ol.setSizeFull(); panel.setSizeFull(); panel.setLayout(ol); + ol.setSizeFull(); + ol.setWidth((String) width.getValue()); + ol.setHeight((String) height.getValue()); + Label l = new Label("Label"); - l.setWidth((String) width.getValue()); - l.setHeight((String) height.getValue()); l.setStyleName("no-padding"); + l.setSizeFull(); ol.addComponent(l); + main.addComponent(panel); main.removeWindow(subwindow); } private void drawInSubwindow() { main.removeAllComponents(); OrderedLayout ol = new OrderedLayout(); - ol.setSizeFull(); + ol.setWidth((String) width.getValue()); + ol.setHeight((String) height.getValue()); + Label l = new Label("Label"); - l.setWidth((String) width.getValue()); - l.setHeight((String) height.getValue()); l.setStyleName("no-padding"); + l.setSizeFull(); ol.addComponent(l); subwindow.setLayout(ol); @@ -111,14 +114,15 @@ public class ScrollbarStressTest extends Application { } private void drawInMainWindow() { + main.removeAllComponents(); OrderedLayout ol = new OrderedLayout(); - ol.setSizeFull(); main.setLayout(ol); + ol.setWidth((String) width.getValue()); + ol.setHeight((String) height.getValue()); Label l = new Label("Label"); - l.setWidth((String) width.getValue()); - l.setHeight((String) height.getValue()); l.setStyleName("no-padding"); + l.setSizeFull(); ol.addComponent(l); main.removeWindow(subwindow); |