diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-06-08 13:58:07 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-06-08 13:58:07 +0300 |
commit | 8648be6705298dbbcfed5aafd9a57ab94d93105a (patch) | |
tree | 3ad8ff7231659fd1fbf37e4fe8a3945f6365c38e /tests | |
parent | e691c917b7d4771237090edfcfc8fba7bdf1acef (diff) | |
download | vaadin-framework-8648be6705298dbbcfed5aafd9a57ab94d93105a.tar.gz vaadin-framework-8648be6705298dbbcfed5aafd9a57ab94d93105a.zip |
Fix broken error tooltips in FormLayout (#8794)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.html | 47 | ||||
-rw-r--r-- | tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java | 33 |
2 files changed, 80 insertions, 0 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.html b/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.html new file mode 100644 index 0000000000..f6fc12af0a --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.html @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="" /> +<title>PropertyValueChange</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">PropertyValueChange</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/run/com.vaadin.tests.components.formlayout.FormLayoutErrorHover?restartApplication&debug</td> + <td></td> +</tr> +<tr> + <td>enterCharacter</td> + <td>vaadin=runcomvaadintestscomponentsformlayoutFormLayoutErrorHover::/VVerticalLayout[0]/VVerticalLayout[0]/VFormLayout[0]/VFormLayout$VFormLayoutTable[0]/VPopupCalendar[0]#field</td> + <td>asdf</td> +</tr> +<tr> + <td>pressSpecialKey</td> + <td>vaadin=runcomvaadintestscomponentsformlayoutFormLayoutErrorHover::/VVerticalLayout[0]/VVerticalLayout[0]/VFormLayout[0]/VFormLayout$VFormLayoutTable[0]/VPopupCalendar[0]#field</td> + <td>enter</td> +</tr> +<!--Hover error indicator--> +<tr> + <td>mouseOver</td> + <td>vaadin=runcomvaadintestscomponentsformlayoutFormLayoutErrorHover::/VVerticalLayout[0]/VVerticalLayout[0]/VFormLayout[0]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td></td> + <td>2000</td> +</tr> +<tr> + <td>assertText</td> + <td>vaadin=runcomvaadintestscomponentsformlayoutFormLayoutErrorHover::Root/VTooltip[0]/FlowPanel[0]/VErrorMessage[0]/HTML[0]/domChild[0]</td> + <td>Date format not recognized</td> +</tr> +</tbody></table> +</body> +</html> diff --git a/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java b/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java new file mode 100644 index 0000000000..b65a448830 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/formlayout/FormLayoutErrorHover.java @@ -0,0 +1,33 @@ +/* +@VaadinApache2LicenseForJavaFiles@ + */ +package com.vaadin.tests.components.formlayout; + +import com.vaadin.terminal.WrappedRequest; +import com.vaadin.tests.components.AbstractTestRoot; +import com.vaadin.ui.FormLayout; +import com.vaadin.ui.PopupDateField; + +public class FormLayoutErrorHover extends AbstractTestRoot { + + @Override + protected void setup(WrappedRequest request) { + FormLayout formLayout = new FormLayout(); + PopupDateField fromDate = new PopupDateField("Date"); + fromDate.setImmediate(true); + formLayout.addComponent(fromDate); + + addComponent(formLayout); + } + + @Override + protected String getTestDescription() { + return "Enter some random text to the date field and press enter. Then hover the error indicator. This should show a message about the error."; + } + + @Override + protected Integer getTicketNumber() { + return Integer.valueOf(8794); + } + +} |