]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] Included touch device information in test
authorAutomerge <automerge@vaadin.com>
Tue, 21 Feb 2012 09:54:39 +0000 (09:54 +0000)
committerAutomerge <automerge@vaadin.com>
Tue, 21 Feb 2012 09:54:39 +0000 (09:54 +0000)
svn changeset:23070/svn branch:6.8

tests/testbench/com/vaadin/tests/VerifyBrowserVersion.java

index aa30a32e19a412b76bff26827bb5f8d780b2db19..63deb79f660bbd6b38087ae26c16db499d8d58a0 100644 (file)
@@ -1,6 +1,7 @@
 package com.vaadin.tests;
 
 import com.vaadin.terminal.gwt.server.WebApplicationContext;
+import com.vaadin.terminal.gwt.server.WebBrowser;
 import com.vaadin.tests.components.TestBase;
 import com.vaadin.ui.Label;
 
@@ -9,7 +10,10 @@ public class VerifyBrowserVersion extends TestBase {
     @Override
     protected void setup() {
         WebApplicationContext context = (WebApplicationContext) getContext();
-        addComponent(new Label(context.getBrowser().getBrowserApplication()));
+        WebBrowser browser = context.getBrowser();
+        addComponent(new Label(browser.getBrowserApplication()));
+        addComponent(new Label("Touch device? "
+                + (browser.isTouchDevice() ? "YES" : "No")));
     }
 
     @Override