From: Johannes Dahlström Date: Fri, 27 Jul 2012 11:12:07 +0000 (+0300) Subject: Moved window tooltip test from components/ to components/window/ (#9172) X-Git-Tag: 7.0.0.beta1~236^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=01c312a4a7b457bfb89c19e804d403537974026f;p=vaadin-framework.git Moved window tooltip test from components/ to components/window/ (#9172) --- diff --git a/tests/testbench/com/vaadin/tests/components/TooltipInWindow.html b/tests/testbench/com/vaadin/tests/components/TooltipInWindow.html deleted file mode 100644 index 2915bb057b..0000000000 --- a/tests/testbench/com/vaadin/tests/components/TooltipInWindow.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - -integration-test-liferay-5.2.3-portlet2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
integration-test-liferay-5.2.3-portlet2
open/run/com.vaadin.tests.components.TooltipInWindow?restartApplication
showTooltipvaadin=runcomvaadintestscomponentsTooltipInWindow::/VVerticalLayout[0]/VVerticalLayout[0]/VTextField[0]5,5
pause1000
assertTextvaadin=runcomvaadintestscomponentsTooltipInWindow::Root/VTooltip[0]/FlowPanel[0]/domChild[1]My tooltip
showTooltipvaadin=runcomvaadintestscomponentsTooltipInWindow::/VVerticalLayout[0]0,0
pause1000
assertElementNotPresentvaadin=runcomvaadintestscomponentsTooltipInWindow::Root/VTooltip[0]
showTooltipvaadin=runcomvaadintestscomponentsTooltipInWindow::/VWindow[0]/FocusableScrollPanel[0]/VVerticalLayout[0]/VTextField[0]5,5
pause1000
assertTextvaadin=runcomvaadintestscomponentsTooltipInWindow::Root/VTooltip[0]/FlowPanel[0]/domChild[1]My tooltip
- - diff --git a/tests/testbench/com/vaadin/tests/components/TooltipInWindow.java b/tests/testbench/com/vaadin/tests/components/TooltipInWindow.java deleted file mode 100644 index 9d0b7bcf42..0000000000 --- a/tests/testbench/com/vaadin/tests/components/TooltipInWindow.java +++ /dev/null @@ -1,40 +0,0 @@ -/* -@VaadinApache2LicenseForJavaFiles@ - */ - -package com.vaadin.tests.components; - -import com.vaadin.terminal.WrappedRequest; -import com.vaadin.ui.TextField; -import com.vaadin.ui.Window; - -public class TooltipInWindow extends AbstractTestRoot { - - @Override - protected void setup(WrappedRequest request) { - Window window = new Window("Window"); - window.getContent().setSizeUndefined(); - window.center(); - window.addComponent(createTextField()); - - addWindow(window); - addComponent(createTextField()); - } - - private TextField createTextField() { - TextField tf = new TextField("TextField with a tooltip"); - tf.setDescription("My tooltip"); - return tf; - } - - @Override - protected String getTestDescription() { - return "Tooltips should also work in a Window (as well as in other overlays)"; - } - - @Override - protected Integer getTicketNumber() { - return Integer.valueOf(9172); - } - -} diff --git a/tests/testbench/com/vaadin/tests/components/window/TooltipInWindow.html b/tests/testbench/com/vaadin/tests/components/window/TooltipInWindow.html new file mode 100644 index 0000000000..2915bb057b --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/window/TooltipInWindow.html @@ -0,0 +1,69 @@ + + + + + + +integration-test-liferay-5.2.3-portlet2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
integration-test-liferay-5.2.3-portlet2
open/run/com.vaadin.tests.components.TooltipInWindow?restartApplication
showTooltipvaadin=runcomvaadintestscomponentsTooltipInWindow::/VVerticalLayout[0]/VVerticalLayout[0]/VTextField[0]5,5
pause1000
assertTextvaadin=runcomvaadintestscomponentsTooltipInWindow::Root/VTooltip[0]/FlowPanel[0]/domChild[1]My tooltip
showTooltipvaadin=runcomvaadintestscomponentsTooltipInWindow::/VVerticalLayout[0]0,0
pause1000
assertElementNotPresentvaadin=runcomvaadintestscomponentsTooltipInWindow::Root/VTooltip[0]
showTooltipvaadin=runcomvaadintestscomponentsTooltipInWindow::/VWindow[0]/FocusableScrollPanel[0]/VVerticalLayout[0]/VTextField[0]5,5
pause1000
assertTextvaadin=runcomvaadintestscomponentsTooltipInWindow::Root/VTooltip[0]/FlowPanel[0]/domChild[1]My tooltip
+ + diff --git a/tests/testbench/com/vaadin/tests/components/window/TooltipInWindow.java b/tests/testbench/com/vaadin/tests/components/window/TooltipInWindow.java new file mode 100644 index 0000000000..9d0b7bcf42 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/window/TooltipInWindow.java @@ -0,0 +1,40 @@ +/* +@VaadinApache2LicenseForJavaFiles@ + */ + +package com.vaadin.tests.components; + +import com.vaadin.terminal.WrappedRequest; +import com.vaadin.ui.TextField; +import com.vaadin.ui.Window; + +public class TooltipInWindow extends AbstractTestRoot { + + @Override + protected void setup(WrappedRequest request) { + Window window = new Window("Window"); + window.getContent().setSizeUndefined(); + window.center(); + window.addComponent(createTextField()); + + addWindow(window); + addComponent(createTextField()); + } + + private TextField createTextField() { + TextField tf = new TextField("TextField with a tooltip"); + tf.setDescription("My tooltip"); + return tf; + } + + @Override + protected String getTestDescription() { + return "Tooltips should also work in a Window (as well as in other overlays)"; + } + + @Override + protected Integer getTicketNumber() { + return Integer.valueOf(9172); + } + +}