diff options
author | Leif Åstrand <leif@vaadin.com> | 2013-06-03 16:00:34 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2013-06-03 16:01:52 +0300 |
commit | 6c36784ad2853d0187f69ef8f023717aa7bade12 (patch) | |
tree | 5ed8951220c767881420e77c307a945104425c47 /uitest/src/com/vaadin/tests/applicationcontext/CloseSession.java | |
parent | 34e6c60a5a746c0306c3a84ae8d6c21dfd84d878 (diff) | |
parent | 84bf5a77e678f6d8a73f71d42fea2300b4f174cc (diff) | |
download | vaadin-framework-6c36784ad2853d0187f69ef8f023717aa7bade12.tar.gz vaadin-framework-6c36784ad2853d0187f69ef8f023717aa7bade12.zip |
Merge commit '34e6c60a5a746c0306c3a84ae8d6c21dfd84d878' into 7.1
#11448 is fixed in a different way for 7.1 because the tooltip event
handling has been slightly refactored.
Change-Id: I50db48ffdce22cdf6598daafcb022fc43ed11cf4
Diffstat (limited to 'uitest/src/com/vaadin/tests/applicationcontext/CloseSession.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/applicationcontext/CloseSession.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/applicationcontext/CloseSession.java b/uitest/src/com/vaadin/tests/applicationcontext/CloseSession.java index 446638f8a2..cca76cc9e3 100644 --- a/uitest/src/com/vaadin/tests/applicationcontext/CloseSession.java +++ b/uitest/src/com/vaadin/tests/applicationcontext/CloseSession.java @@ -18,13 +18,16 @@ package com.vaadin.tests.applicationcontext; import javax.servlet.http.HttpSession; +import com.vaadin.server.Page; import com.vaadin.server.VaadinRequest; import com.vaadin.server.VaadinService; +import com.vaadin.server.VaadinSession; import com.vaadin.server.WrappedHttpSession; import com.vaadin.tests.components.AbstractTestUI; import com.vaadin.tests.util.Log; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; +import com.vaadin.ui.UI; public class CloseSession extends AbstractTestUI { private static final String OLD_HASH_PARAM = "oldHash"; @@ -158,6 +161,17 @@ public class CloseSession extends AbstractTestUI { @Override public void detach() { super.detach(); - System.out.println("UI " + getUIId() + " detached"); + log.log("Detach of " + this + " (" + getUIId() + ")"); + boolean correctUI = (UI.getCurrent() == this); + boolean correctPage = (Page.getCurrent() == getPage()); + boolean correctVaadinSession = (VaadinSession.getCurrent() == getSession()); + boolean correctVaadinService = (VaadinService.getCurrent() == getSession() + .getService()); + log.log("UI.current correct in detach: " + correctUI); + log.log("Page.current correct in detach: " + correctPage); + log.log("VaadinSession.current correct in detach: " + + correctVaadinSession); + log.log("VaadinService.current correct in detach: " + + correctVaadinService); } } |