diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-10-16 13:48:15 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-10-16 13:48:47 +0300 |
commit | 9e769462bd09483c1ccfde452bc679ea54a5d85e (patch) | |
tree | ddca2585fefccf6ab7382503465ca5aa2bcfa48f /client/tests | |
parent | 6290daf788d6a96afaae4d6db058762b713af291 (diff) | |
parent | e157228948d4583951cad358b77e8ab27990e5e5 (diff) | |
download | vaadin-framework-9e769462bd09483c1ccfde452bc679ea54a5d85e.tar.gz vaadin-framework-9e769462bd09483c1ccfde452bc679ea54a5d85e.zip |
Merge remote-tracking branch 'origin/master' into grid
Change-Id: I7462e5a6a902eb0c4396bc14216a6f323dd33b76
Diffstat (limited to 'client/tests')
-rw-r--r-- | client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java b/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java index dd892b19ec..6cd0630137 100644 --- a/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java +++ b/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java @@ -85,6 +85,7 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { // assertBrowserMinorVersion(bd, 1); assertEngineVersion(bd, 536f); assertIOS(bd, 6, 1); + assertIPhone(bd); } public void testIPhoneIOS5() { @@ -95,6 +96,7 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { assertBrowserMinorVersion(bd, 1); assertEngineVersion(bd, 534f); assertIOS(bd, 5, 1); + assertIPhone(bd); } public void testIPhoneIOS4() { @@ -105,6 +107,7 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { assertBrowserMinorVersion(bd, 0); assertEngineVersion(bd, 532f); assertIOS(bd, 4, 0); + assertIPhone(bd); } public void testIPadIOS4() { @@ -115,6 +118,7 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { assertBrowserMinorVersion(bd, 0); assertEngineVersion(bd, 533f); assertIOS(bd, 4, 3); + assertIPad(bd); } public void testAndroid21() { @@ -539,6 +543,16 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { assertOSMinorVersion(browserDetails, minorVersion); } + private void assertIPhone(VBrowserDetails browserDetails) { + assertTrue(browserDetails.isIPhone()); + assertFalse(browserDetails.isIPad()); + } + + private void assertIPad(VBrowserDetails browserDetails) { + assertFalse(browserDetails.isIPhone()); + assertTrue(browserDetails.isIPad()); + } + private void assertWindows(VBrowserDetails browserDetails) { assertWindows(browserDetails, false); } |