]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added browser version test again (#7655)
authorLeif Åstrand <leif@vaadin.com>
Thu, 20 Oct 2011 09:57:07 +0000 (09:57 +0000)
committerLeif Åstrand <leif@vaadin.com>
Thu, 20 Oct 2011 09:57:07 +0000 (09:57 +0000)
svn changeset:21757/svn branch:6.7

tests/testbench/com/vaadin/tests/VerifyBrowserVersion.html [new file with mode: 0644]
tests/testbench/com/vaadin/tests/VerifyBrowserVersion.java [new file with mode: 0644]

diff --git a/tests/testbench/com/vaadin/tests/VerifyBrowserVersion.html b/tests/testbench/com/vaadin/tests/VerifyBrowserVersion.html
new file mode 100644 (file)
index 0000000..8313ece
--- /dev/null
@@ -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 (file)
index 0000000..aa30a32
--- /dev/null
@@ -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);
+    }
+
+}