From d1e39177bac3a6ce05e84ac5a6c5b4e0484408d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Thu, 20 Oct 2011 09:57:07 +0000 Subject: [PATCH] Added browser version test again (#7655) svn changeset:21757/svn branch:6.7 --- .../vaadin/tests/VerifyBrowserVersion.html | 26 +++++++++++++++++++ .../vaadin/tests/VerifyBrowserVersion.java | 25 ++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 tests/testbench/com/vaadin/tests/VerifyBrowserVersion.html create mode 100644 tests/testbench/com/vaadin/tests/VerifyBrowserVersion.java 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); + } + +} -- 2.39.5