aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/textfield
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-05 19:30:41 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-05 19:30:41 +0300
commitcc3ddcac953a087b09ae330ff37126dcd5ec727f (patch)
tree35a0b367042298b212038e9cba0ea7d81e6909c3 /uitest/src/com/vaadin/tests/components/textfield
parentd1c361e251800c6f7d596ddf79ed1c7569196856 (diff)
downloadvaadin-framework-cc3ddcac953a087b09ae330ff37126dcd5ec727f.tar.gz
vaadin-framework-cc3ddcac953a087b09ae330ff37126dcd5ec727f.zip
Remove getApplication() and add getSession() (#9402)
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/textfield')
-rw-r--r--uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java b/uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java
index f6368f0c78..d63d7ddc66 100644
--- a/uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java
+++ b/uitest/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java
@@ -30,7 +30,8 @@ public class SelectionAndCursorPosition extends TestBase {
ml.addListener(new Property.ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- if (textField.getApplication() == null) {
+ if (textField.getUI() == null
+ || textField.getUI().getSession() == null) {
replaceComponent(textArea, textField);
activeComponent = textField;
} else {