--- /dev/null
+package com.vaadin.tests.components;\r
+\r
+import com.vaadin.tests.util.LoremIpsum;\r
+import com.vaadin.ui.Alignment;\r
+import com.vaadin.ui.GridLayout;\r
+import com.vaadin.ui.TextField;\r
+\r
+public class LongTooltip extends TestBase {\r
+\r
+ @Override\r
+ public void setup() {\r
+\r
+ GridLayout gl = new GridLayout(2, 2);\r
+ gl.setSizeFull();\r
+ TextField f1 = createField();\r
+ TextField f2 = createField();\r
+ TextField f3 = createField();\r
+ TextField f4 = createField();\r
+ gl.addComponent(f1);\r
+ gl.addComponent(f2);\r
+ gl.addComponent(f3);\r
+ gl.addComponent(f4);\r
+\r
+ gl.setComponentAlignment(f1, Alignment.TOP_LEFT);\r
+ gl.setComponentAlignment(f2, Alignment.TOP_RIGHT);\r
+ gl.setComponentAlignment(f3, Alignment.BOTTOM_LEFT);\r
+ gl.setComponentAlignment(f4, Alignment.BOTTOM_RIGHT);\r
+\r
+ getLayout().setSizeFull();\r
+ getLayout().addComponent(gl);\r
+\r
+ }\r
+\r
+ private TextField createField() {\r
+ final TextField field = new TextField();\r
+ field.setDescription(LoremIpsum.get(1000));\r
+ return field;\r
+ }\r
+\r
+ @Override\r
+ protected String getDescription() {\r
+ return "For a given cursor position the tooltip should always appear with the same size in the same position. The tooltip should also always be completely on screen and not cause any scrollbars to appear.";\r
+ }\r
+\r
+ @Override\r
+ protected Integer getTicketNumber() {\r
+ return 7100;\r
+ }\r
+}\r