diff options
author | Denis Anisimov <denis@vaadin.com> | 2014-09-07 17:39:56 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-09-12 17:11:45 +0000 |
commit | 174dc3530e30b0d3f3af256d5749862509991256 (patch) | |
tree | 403de10671b37d7b51582d93f5055b73fc5d86b8 /client | |
parent | 55d019853b060f9c7c853d6634179544b325c29a (diff) | |
download | vaadin-framework-174dc3530e30b0d3f3af256d5749862509991256.tar.gz vaadin-framework-174dc3530e30b0d3f3af256d5749862509991256.zip |
WebBrowser.isWindowsPhone() is added (#14425).
Change-Id: Ia279c4da78ca04e0d3727b605e2ce68b99e8cd65
Diffstat (limited to 'client')
-rw-r--r-- | client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java b/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java index e38054e3e4..dd892b19ec 100644 --- a/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java +++ b/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java @@ -2,6 +2,8 @@ package com.vaadin.client; import junit.framework.TestCase; +import org.junit.Assert; + import com.vaadin.shared.VBrowserDetails; public class TestVBrowserDetailsUserAgentParser extends TestCase { @@ -404,7 +406,7 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { assertIE(bd); assertBrowserMajorVersion(bd, 11); assertBrowserMinorVersion(bd, 0); - assertWindows(bd); + assertWindows(bd, true); } /* @@ -538,11 +540,17 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { } private void assertWindows(VBrowserDetails browserDetails) { + assertWindows(browserDetails, false); + } + + private void assertWindows(VBrowserDetails browserDetails, + boolean isWindowsPhone) { assertFalse(browserDetails.isLinux()); assertTrue(browserDetails.isWindows()); assertFalse(browserDetails.isMacOSX()); assertFalse(browserDetails.isIOS()); assertFalse(browserDetails.isAndroid()); + Assert.assertEquals(isWindowsPhone, browserDetails.isWindowsPhone()); } private void assertLinux(VBrowserDetails browserDetails) { |