From aab952a0733067e4cee0a3ca37cd972640b26628 Mon Sep 17 00:00:00 2001 From: John Alhroos Date: Wed, 3 Aug 2011 11:00:38 +0000 Subject: Added Testbench testcase for #6934 svn changeset:20099/svn branch:6.6 --- .../table/CollapseIndicatorOverlapsColumn.html | 52 ++++++++++++++++++++++ .../table/CollapseIndicatorOverlapsColumn.java | 47 +++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.html create mode 100644 tests/src/com/vaadin/tests/components/table/CollapseIndicatorOverlapsColumn.java 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 @@ + + + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
New Test
open/run/com.vaadin.tests.components.table.CollapseIndicatorOverlapsColumn?restartApplication
screenCaptureRightColumnCaptionVisible
mouseClickvaadin=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]76,11
screenCaptureRightColumnCaptionAndSortIndicatorVisible
dragvaadin=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]
dropvaadin=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]-100,0
screenCaptureNoExtraSpacingInCaption
+ + 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; + } + +} -- cgit v1.2.3