From 57e627fda35a0794834d4c647e6035b5275f3ea9 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Wed, 19 Dec 2012 18:06:52 +0200 Subject: Merge of (#8786) test to Vaadin 7. PopupView throws an exception if reopened without explicitly letting it close first. Change-Id: I0493870c47f39a73da8393025e6fccfe3c4c6c27 --- .../popupview/ClickingWhilePopupOpen.html | 37 ++++++++++++++++++++++ .../popupview/ClickingWhilePopupOpen.java | 26 +++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.html create mode 100644 uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.java (limited to 'uitest') diff --git a/uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.html b/uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.html new file mode 100644 index 0000000000..81676f6599 --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.html @@ -0,0 +1,37 @@ + + + + + + +ClickingWhilePopupOpen + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ClickingWhilePopupOpen
open/run/ClickingWhilePopupOpen?restartApplication&debug
mouseClickvaadin=runClickingWhilePopupOpen::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VPopupView[0]132,7
mouseClickvaadin=runClickingWhilePopupOpen::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VPopupView[0]132,7
assertTextNotPresentIllegalStateException: Cannot set a new parent without first clearing the old parent
+ + diff --git a/uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.java b/uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.java new file mode 100644 index 0000000000..239c774180 --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.java @@ -0,0 +1,26 @@ +package com.vaadin.tests.components.popupview; + +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Label; +import com.vaadin.ui.PopupView; + +public class ClickingWhilePopupOpen extends TestBase { + + @Override + protected void setup() { + Label popup = new Label("Popup"); + popup.setSizeUndefined(); + addComponent(new PopupView("Click here to open the popup", popup)); + } + + @Override + protected String getDescription() { + return "Clicking the popup view when the popup is already open throws a client-side IllegalStateException"; + } + + @Override + protected Integer getTicketNumber() { + return 8786; + } + +} -- cgit v1.2.3