aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src
diff options
context:
space:
mode:
authorSauli Tähkäpää <sauli@vaadin.com>2014-03-18 08:40:14 +0200
committerSauli Tähkäpää <sauli@vaadin.com>2014-03-18 12:30:08 +0200
commitc5aaf938f797f8c657ff3b9d7c02489eaf2526e9 (patch)
tree3b0a85fc6a25da896b1f4ff01f46d323901f7097 /uitest/src
parent3545db2a19397509db1c3fa4ed6f4cc3f85ec1e4 (diff)
downloadvaadin-framework-c5aaf938f797f8c657ff3b9d7c02489eaf2526e9.tar.gz
vaadin-framework-c5aaf938f797f8c657ff3b9d7c02489eaf2526e9.zip
Refactored JSR286 portlet test.
Change-Id: I1830ebca5e23890636ade0bab2eca2cefe6ee1ac
Diffstat (limited to 'uitest/src')
-rw-r--r--uitest/src/com/vaadin/tests/integration/JSR286Portlet.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/uitest/src/com/vaadin/tests/integration/JSR286Portlet.java b/uitest/src/com/vaadin/tests/integration/JSR286Portlet.java
index dab19498ab..37f8e21c50 100644
--- a/uitest/src/com/vaadin/tests/integration/JSR286Portlet.java
+++ b/uitest/src/com/vaadin/tests/integration/JSR286Portlet.java
@@ -72,15 +72,6 @@ public class JSR286Portlet extends UI {
userInfo.setContentMode(ContentMode.PREFORMATTED);
main.addComponent(userInfo);
- userAgent.setCaption("User Agent");
- main.addComponent(userAgent);
-
- screenWidth.setCaption("Screen width");
- main.addComponent(screenWidth);
-
- screenHeight.setCaption("Screen height");
- main.addComponent(screenHeight);
-
tf.setEnabled(false);
tf.setImmediate(true);
main.addComponent(tf);
@@ -100,6 +91,16 @@ public class JSR286Portlet extends UI {
main.addComponent(upload);
possiblyChangedModeOrState();
+
+ userAgent.setCaption("User Agent");
+ main.addComponent(userAgent);
+
+ screenWidth.setCaption("Screen width");
+ main.addComponent(screenWidth);
+
+ screenHeight.setCaption("Screen height");
+ main.addComponent(screenHeight);
+
getSession().addPortletListener(new DemoPortletListener());
}