aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2013-11-12 11:27:07 +0200
committerHenri Sara <hesara@vaadin.com>2013-11-12 11:27:07 +0200
commit9885b8c7d70d1f9bdfeb7ebcef1a85a5fdf9fbe5 (patch)
treea743aacd678155d3f3b94dea7d3c9370bd154f5c /uitest/src/com
parentd2e7b366ef40bd5a27ba4693eba8d80ae8fc4f77 (diff)
parent011a2a0c9d8eac77e17a5a31b6ddd9ea243209d8 (diff)
downloadvaadin-framework-9885b8c7d70d1f9bdfeb7ebcef1a85a5fdf9fbe5.tar.gz
vaadin-framework-9885b8c7d70d1f9bdfeb7ebcef1a85a5fdf9fbe5.zip
Merge branch '7.1' into testbench4
Conflicts: publish.xml Change-Id: Ic8187a44ac731a930921a6ddcbe0f7eb07deef7e
Diffstat (limited to 'uitest/src/com')
-rw-r--r--uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameDoubleScrollbars.java40
-rw-r--r--uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameDoubleScrollbarsTest.java15
2 files changed, 55 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameDoubleScrollbars.java b/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameDoubleScrollbars.java
new file mode 100644
index 0000000000..5151ad5dd3
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameDoubleScrollbars.java
@@ -0,0 +1,40 @@
+package com.vaadin.tests.components.browserframe;
+
+import com.vaadin.server.ExternalResource;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.tests.components.AbstractTestUI;
+import com.vaadin.ui.BrowserFrame;
+import com.vaadin.ui.TabSheet;
+
+public class BrowserFrameDoubleScrollbars extends AbstractTestUI {
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 11780;
+ }
+
+ @Override
+ protected void setup(VaadinRequest request) {
+
+ getLayout().setHeight("100%");
+ getLayout().setSizeFull();
+ getLayout().getParent().setSizeFull();
+
+ TabSheet tabs = new TabSheet();
+ tabs.setSizeFull();
+ getLayout().addComponent(tabs);
+
+ BrowserFrame help = new BrowserFrame();
+ help.setSizeFull();
+ help.setSource(new ExternalResource("/statictestfiles/long-html.htm"));
+
+ tabs.addComponent(help);
+
+ }
+
+ @Override
+ protected String getTestDescription() {
+ return "Embedded browser causes second scrollbar";
+ }
+
+}
diff --git a/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameDoubleScrollbarsTest.java b/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameDoubleScrollbarsTest.java
new file mode 100644
index 0000000000..ade43735a7
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/browserframe/BrowserFrameDoubleScrollbarsTest.java
@@ -0,0 +1,15 @@
+package com.vaadin.tests.components.browserframe;
+
+import org.junit.Test;
+
+import com.vaadin.tests.tb3.MultiBrowserTest;
+
+public class BrowserFrameDoubleScrollbarsTest extends MultiBrowserTest {
+
+ @Test
+ public void testWindowRepositioning() throws Exception {
+ openTestURL();
+
+ compareScreen("BrowserFrameDoubleScrollbars");
+ }
+}