summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-09-25 11:01:17 +0300
committerJohn Ahlroos <john@vaadin.com>2012-09-25 11:01:17 +0300
commit8ad8ce15bbd2da69db70e384230f53db74443d22 (patch)
tree40e834538c700ee9ba390e8b148d161383639300 /uitest
parentcd25b65be1c8a32a5ac9cf7d7d7adf26f050b345 (diff)
downloadvaadin-framework-8ad8ce15bbd2da69db70e384230f53db74443d22.tar.gz
vaadin-framework-8ad8ce15bbd2da69db70e384230f53db74443d22.zip
Added test case for vertical layout relative children.
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeChildren.html27
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeChildren.java59
2 files changed, 86 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeChildren.html b/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeChildren.html
new file mode 100644
index 0000000000..bcff408592
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeChildren.html
@@ -0,0 +1,27 @@
+<?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>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.orderedlayout.VerticalRelativeChildren?restartApplication</td>
+ <td></td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeChildren.java b/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeChildren.java
new file mode 100644
index 0000000000..260bfb02a4
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/VerticalRelativeChildren.java
@@ -0,0 +1,59 @@
+package com.vaadin.tests.components.orderedlayout;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Alignment;
+import com.vaadin.ui.TextArea;
+import com.vaadin.ui.VerticalLayout;
+
+public class VerticalRelativeChildren extends TestBase {
+
+ @Override
+ protected void setup() {
+
+ VerticalLayout vl = new VerticalLayout();
+ vl.setWidth("300px");
+
+ TextArea areaUndefined = new TextArea();
+ areaUndefined.setSizeUndefined();
+ areaUndefined.setValue("Undefined height");
+ vl.addComponent(areaUndefined);
+
+ TextArea areaDefined = new TextArea();
+ areaDefined.setWidth("200px");
+ areaDefined.setValue("200px width");
+ vl.addComponent(areaDefined);
+
+ TextArea areaRelativeBottom = new TextArea();
+ areaRelativeBottom.setWidth("50%");
+ areaRelativeBottom.setValue("50% width, right align");
+ vl.addComponent(areaRelativeBottom);
+ vl.setComponentAlignment(areaRelativeBottom, Alignment.TOP_RIGHT);
+
+ TextArea areaRelativeCenter = new TextArea();
+ areaRelativeCenter.setWidth("50%");
+ areaRelativeCenter.setValue("50% width, center align");
+ vl.addComponent(areaRelativeCenter);
+ vl.setComponentAlignment(areaRelativeCenter, Alignment.TOP_CENTER);
+
+ TextArea areaRelativeTop = new TextArea();
+ areaRelativeTop.setWidth("50%");
+ areaRelativeTop.setValue("50% width, left align");
+ vl.addComponent(areaRelativeTop);
+ vl.setComponentAlignment(areaRelativeTop, Alignment.TOP_LEFT);
+
+ addComponent(vl);
+ }
+
+ @Override
+ protected String getDescription() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}