From: Leif Åstrand Date: Thu, 20 Oct 2011 09:57:07 +0000 (+0000) Subject: Added browser version test again (#7655) X-Git-Tag: 7.0.0.alpha1~372 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d1e39177bac3a6ce05e84ac5a6c5b4e0484408d4;p=vaadin-framework.git Added browser version test again (#7655) svn changeset:21757/svn branch:6.7 --- diff --git a/tests/testbench/com/vaadin/tests/VerifyBrowserVersion.html b/tests/testbench/com/vaadin/tests/VerifyBrowserVersion.html new file mode 100644 index 0000000000..8313eceeab --- /dev/null +++ b/tests/testbench/com/vaadin/tests/VerifyBrowserVersion.html @@ -0,0 +1,26 @@ + + + + + + +New Test + + + + + + + + + + + + + + + + +
New Test
open/run/com.vaadin.tests.VerifyBrowserVersion?restartApplication
screenCaptureuserAgent
+ + diff --git a/tests/testbench/com/vaadin/tests/VerifyBrowserVersion.java b/tests/testbench/com/vaadin/tests/VerifyBrowserVersion.java new file mode 100644 index 0000000000..aa30a32e19 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/VerifyBrowserVersion.java @@ -0,0 +1,25 @@ +package com.vaadin.tests; + +import com.vaadin.terminal.gwt.server.WebApplicationContext; +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Label; + +public class VerifyBrowserVersion extends TestBase { + + @Override + protected void setup() { + WebApplicationContext context = (WebApplicationContext) getContext(); + addComponent(new Label(context.getBrowser().getBrowserApplication())); + } + + @Override + protected String getDescription() { + return "Silly test just to get a screenshot of the browser's user agent string"; + } + + @Override + protected Integer getTicketNumber() { + return Integer.valueOf(7655); + } + +}