diff options
author | Artur Signell <artur@vaadin.com> | 2013-01-02 14:03:11 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-01-02 14:03:11 +0000 |
commit | 7442819fc0cb97ffb49c8b64c0e8587f8b6bd9d5 (patch) | |
tree | 30ac12211656f18ffc3f131e24ce6a19dc0bfda8 /uitest | |
parent | 15a50330eda029cfb65de766fcc71ddfd562fe90 (diff) | |
parent | 57e627fda35a0794834d4c647e6035b5275f3ea9 (diff) | |
download | vaadin-framework-7442819fc0cb97ffb49c8b64c0e8587f8b6bd9d5.tar.gz vaadin-framework-7442819fc0cb97ffb49c8b64c0e8587f8b6bd9d5.zip |
Merge "Merge of (#8786) test to Vaadin 7."
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.html | 37 | ||||
-rw-r--r-- | uitest/src/com/vaadin/tests/components/popupview/ClickingWhilePopupOpen.java | 26 |
2 files changed, 63 insertions, 0 deletions
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 @@ +<?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="http://localhost:8068/" /> +<title>ClickingWhilePopupOpen</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">ClickingWhilePopupOpen</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/run/ClickingWhilePopupOpen?restartApplication&debug</td> + <td></td> +</tr> +<tr> + <td>mouseClick</td> + <td>vaadin=runClickingWhilePopupOpen::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VPopupView[0]</td> + <td>132,7</td> +</tr> +<tr> + <td>mouseClick</td> + <td>vaadin=runClickingWhilePopupOpen::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VPopupView[0]</td> + <td>132,7</td> +</tr> +<tr> + <td>assertTextNotPresent</td> + <td>IllegalStateException: Cannot set a new parent without first clearing the old parent</td> + <td></td> +</tr> + +</tbody></table> +</body> +</html> 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; + } + +} |