summaryrefslogtreecommitdiffstats
path: root/uitest/src
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2013-02-14 15:41:45 +0200
committerVaadin Code Review <review@vaadin.com>2013-02-18 12:40:57 +0000
commit41e1a013d829f75c0bdadea40ec0b42429e2a581 (patch)
tree7298dc5bad5b417896bc526627ff3d7a11e7cf7c /uitest/src
parentf759408c0fa75cc1610b6a598737bf4eec039104 (diff)
downloadvaadin-framework-41e1a013d829f75c0bdadea40ec0b42429e2a581.tar.gz
vaadin-framework-41e1a013d829f75c0bdadea40ec0b42429e2a581.zip
Interim fix for resizing of child component in AbsoluteLayout when child is 100% and layout resized (no-merge) #10427
Change-Id: I497ecc1ac88ef1b3c07d127aff3c157827088e01
Diffstat (limited to 'uitest/src')
-rw-r--r--uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizing.html37
-rw-r--r--uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizing.java44
2 files changed, 81 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizing.html b/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizing.html
new file mode 100644
index 0000000000..01206b317c
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizing.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:8888/" />
+<title>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/run/com.vaadin.tests.components.absolutelayout.AbsoluteLayoutResizing?restartApplication</td>
+ <td></td>
+</tr>
+<tr>
+ <td>dragAndDrop</td>
+ <td>vaadin=runcomvaadintestscomponentsabsolutelayoutAbsoluteLayoutResizing::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[0]/VSplitPanelVertical[0]/domChild[0]/domChild[1]/domChild[0]</td>
+ <td>0,294</td>
+</tr>
+<tr>
+ <td>dragAndDrop</td>
+ <td>vaadin=runcomvaadintestscomponentsabsolutelayoutAbsoluteLayoutResizing::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[0]/VSplitPanelVertical[0]/VSplitPanelHorizontal[0]/domChild[0]/domChild[1]/domChild[0]</td>
+ <td>588,0</td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>resized</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizing.java b/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizing.java
new file mode 100644
index 0000000000..810a583ba5
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutResizing.java
@@ -0,0 +1,44 @@
+package com.vaadin.tests.components.absolutelayout;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.AbsoluteLayout;
+import com.vaadin.ui.HorizontalSplitPanel;
+import com.vaadin.ui.TextArea;
+import com.vaadin.ui.VerticalSplitPanel;
+
+public class AbsoluteLayoutResizing extends TestBase {
+
+ @Override
+ protected void setup() {
+ getLayout().setSizeFull();
+
+ AbsoluteLayout al = new AbsoluteLayout();
+
+ TextArea ta = new TextArea();
+ ta.setValue("When resizing the layout this text area should also get resized");
+ ta.setSizeFull();
+ al.addComponent(ta, "left: 10px; right: 10px; top: 10px; bottom: 10px;");
+
+ HorizontalSplitPanel horizPanel = new HorizontalSplitPanel();
+ horizPanel.setSizeFull();
+ horizPanel.setFirstComponent(al);
+
+ VerticalSplitPanel vertPanel = new VerticalSplitPanel();
+ vertPanel.setSizeFull();
+ vertPanel.setFirstComponent(horizPanel);
+
+ addComponent(vertPanel);
+
+ }
+
+ @Override
+ protected String getDescription() {
+ return "Absolute layout should correctly dynamically resize itself";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 10427;
+ }
+
+}