diff options
author | Leif Åstrand <leif@vaadin.com> | 2011-10-20 09:57:07 +0000 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2011-10-20 09:57:07 +0000 |
commit | d1e39177bac3a6ce05e84ac5a6c5b4e0484408d4 (patch) | |
tree | 6ff2ce2f10dfe4c377f1ed0680a3a3b028b9a612 /tests | |
parent | f1f87c150edcae337c1dee2abc3c32bab0e29b4d (diff) | |
download | vaadin-framework-d1e39177bac3a6ce05e84ac5a6c5b4e0484408d4.tar.gz vaadin-framework-d1e39177bac3a6ce05e84ac5a6c5b4e0484408d4.zip |
Added browser version test again (#7655)
svn changeset:21757/svn branch:6.7
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testbench/com/vaadin/tests/VerifyBrowserVersion.html | 26 | ||||
-rw-r--r-- | tests/testbench/com/vaadin/tests/VerifyBrowserVersion.java | 25 |
2 files changed, 51 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head profile="http://selenium-ide.openqa.org/profiles/test-case"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<link rel="selenium.base" href="http://localhost:8080/" /> +<title>New Test</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">New Test</td></tr> +</thead><tbody> +<tr> + <td>open</td> + <td>/run/com.vaadin.tests.VerifyBrowserVersion?restartApplication</td> + <td></td> +</tr> +<tr> + <td>screenCapture</td> + <td></td> + <td>userAgent</td> +</tr> +</tbody></table> +</body> +</html> 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); + } + +} |