diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/VerifyBrowserVersion.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/VerifyBrowserVersion.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/VerifyBrowserVersion.java b/uitest/src/com/vaadin/tests/VerifyBrowserVersion.java new file mode 100644 index 0000000000..8a07168ef7 --- /dev/null +++ b/uitest/src/com/vaadin/tests/VerifyBrowserVersion.java @@ -0,0 +1,29 @@ +package com.vaadin.tests; + +import com.vaadin.server.WebApplicationContext; +import com.vaadin.server.WebBrowser; +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Label; + +public class VerifyBrowserVersion extends TestBase { + + @Override + protected void setup() { + WebApplicationContext context = (WebApplicationContext) getContext(); + WebBrowser browser = context.getBrowser(); + addComponent(new Label(browser.getBrowserApplication())); + addComponent(new Label("Touch device? " + + (browser.isTouchDevice() ? "YES" : "No"))); + } + + @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); + } + +} |