summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2011-08-03 11:00:38 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2011-08-03 11:00:38 +0000
commitaab952a0733067e4cee0a3ca37cd972640b26628 (patch)
treebd6a750a1d092f3e0d7392a439234d76a9b32b70
parent2a65fd134dbb3e55452d3770343244e1afc2bbe9 (diff)
downloadvaadin-framework-aab952a0733067e4cee0a3ca37cd972640b26628.tar.gz
vaadin-framework-aab952a0733067e4cee0a3ca37cd972640b26628.zip
Added Testbench testcase for #6934
svn changeset:20099/svn branch:6.6
-rw-r--r--tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.html52
-rw-r--r--tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.java47
2 files changed, 99 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.html b/tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.html
new file mode 100644
index 0000000000..3f0f2cfcf2
--- /dev/null
+++ b/tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.html
@@ -0,0 +1,52 @@
+<?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:8080/" />
+<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.table.CollapseIndicatorOverlapsColumn?restartApplication</td>
+ <td></td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>RightColumnCaptionVisible</td>
+</tr>
+<tr>
+ <td>mouseClick</td>
+ <td>vaadin=runcomvaadintestscomponentstableCollapseIndicatorOverlapsColumn::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VScrollTable[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[1]/domChild[2]</td>
+ <td>76,11</td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>RightColumnCaptionAndSortIndicatorVisible</td>
+</tr>
+<tr>
+ <td>drag</td>
+ <td>vaadin=runcomvaadintestscomponentstableCollapseIndicatorOverlapsColumn::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VScrollTable[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>drop</td>
+ <td>vaadin=runcomvaadintestscomponentstableCollapseIndicatorOverlapsColumn::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VScrollTable[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
+ <td>-100,0</td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>NoExtraSpacingInCaption</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.java b/tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.java
new file mode 100644
index 0000000000..267b61854f
--- /dev/null
+++ b/tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.java
@@ -0,0 +1,47 @@
+package com.vaadin.tests.components.table;
+
+import com.vaadin.data.Item;
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Table;
+
+public class CollapseIndicatorOverlapsColumn extends TestBase {
+
+ @Override
+ protected void setup() {
+ Table tbl = createTable();
+ tbl = createTable();
+ tbl.setWidth("400px");
+ addComponent(tbl);
+ }
+
+ private Table createTable() {
+ Table tbl = new Table();
+ tbl.addContainerProperty("COL1", String.class, "Column 1");
+ tbl.addContainerProperty("COL2", String.class, "Column 2");
+
+ // Right align last column
+ tbl.setColumnAlignment("COL2", Table.ALIGN_RIGHT);
+
+ // Allow collapsing
+ tbl.setColumnCollapsingAllowed(true);
+
+ for (int i = 0; i < 5; i++) {
+ Item item = tbl.addItem("Item " + i);
+ for (int j = 1; j <= 2; j++) {
+ item.getItemProperty("COL" + j).setValue("Item " + i + "/" + j);
+ }
+ }
+ return tbl;
+ }
+
+ @Override
+ protected String getDescription() {
+ return "The rightmost column should not be covered by the collapse indicator";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 6934;
+ }
+
+}