diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2008-04-07 15:38:15 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2008-04-07 15:38:15 +0000 |
commit | f51577b7567821f8bb13ecaa60eb101f708e6147 (patch) | |
tree | 10cef62ed79d94aba6e83d76f0b753f1f3cc1410 /src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java | |
parent | 638fe9899be27b8f4f92dc4750f813c1210ecb1f (diff) | |
download | vaadin-framework-f51577b7567821f8bb13ecaa60eb101f708e6147.tar.gz vaadin-framework-f51577b7567821f8bb13ecaa60eb101f708e6147.zip |
Created com.itmill.toolkit.automatedtests package which contains "official" automated tests
* do not touch them unless you change automated test client's testcase scripts too.
* copy your testing application to package com.itmill.toolkit.automatedtests
* do not point to "development / testing / production" packages which are edited in the future without relation to testing
* use setDebugId's for all components that are used in testing
Moved few classes from "experimental" com.itmill.toolkit.tests package into "official" side.
Copied featurebrowser to automatedtests package and added setDebugId's for most components that are used in the testing.
svn changeset:4138/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java')
-rw-r--r-- | src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java b/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java index 028a0bda34..0d55cd5c82 100644 --- a/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java +++ b/src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java @@ -96,7 +96,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, main.addComponent(eventListenerFeedback); // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { window = new Window("Components inside Window (TEST: Window)"); if (false) { @@ -110,7 +110,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { target .addComponent(new Label( "<hr /><h1>Components inside horizontal OrderedLayout</h3>", @@ -122,7 +122,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { target .addComponent(new Label( "<br/><br/><br/><hr /><h1>Components inside vertical OrderedLayout</h3>", @@ -134,7 +134,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { target.addComponent(new Label( "<hr /><h1>Components inside TabSheet</h3>", Label.CONTENT_XHTML)); @@ -160,6 +160,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, "<hr /><h1>Components inside Accordion</h3>", Label.CONTENT_XHTML)); final Accordion accordion = new Accordion(); + accordion.setHeight(500); final OrderedLayout acc1 = new OrderedLayout(); acc1.addComponent(new Label("try acc2")); final OrderedLayout acc2 = new OrderedLayout(); @@ -176,7 +177,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { target.addComponent(new Label( "<hr /><h1>Components inside GridLayout</h3>", Label.CONTENT_XHTML)); @@ -187,7 +188,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { target .addComponent(new Label( "<hr /><h1>Components inside ExpandLayout (height 250px)</h3>", @@ -200,7 +201,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { target.addComponent(new Label( "<hr /><h1>Components inside Panel</h3>", Label.CONTENT_XHTML)); @@ -210,7 +211,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { target .addComponent(new Label( "<hr /><h1>Components inside vertical SplitPanel (splitpanel is under 250height ExpandLayout)</h3>", @@ -230,7 +231,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // ////////////////////////////////////////////////////////////////////////// - if (true) { + if (false) { target .addComponent(new Label( "<hr /><h1>Components inside horizontal SplitPanel (splitpanel is under 250px height ExpandLayout)</h3>", @@ -408,7 +409,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, // TWEAK these // c.setEnabled(false); // c.setVisible(false); - c.setStyleName("testStyleName"); + // c.setStyleName("testStyleName"); // c.setReadOnly(true); // try to add listener @@ -427,7 +428,7 @@ public class TestComponentsAndLayouts extends Application implements Listener, */ void test(AbstractComponent c) { // configure common component properties - setComponentProperties(c); + // setComponentProperties(c); // AbstractComponent specific configuration final ClassResource res = new ClassResource("m.gif", this); @@ -437,12 +438,12 @@ public class TestComponentsAndLayouts extends Application implements Listener, } // TWEAK these - c.setComponentError(errorMsg); - c.setIcon(res); - c.setImmediate(true); - c.addStyleName("addedTestStyleName"); + // c.setComponentError(errorMsg); + // c.setIcon(res); + // c.setImmediate(true); + // c.addStyleName("addedTestStyleName"); // c.setStyleName("singleTestStyleName"); - c.setDescription("Description here.."); + // c.setDescription("Description here.."); } void test(CustomComponent c) { |