diff options
author | Artur Signell <artur@vaadin.com> | 2012-10-09 18:38:28 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-10-23 16:10:56 +0300 |
commit | 21f8f85da95b2a3e555c46bfaf595fe61824fb94 (patch) | |
tree | 60aa29c536ba8552b0e594514ec65747f167915a /client/tests | |
parent | 1baeeab1dbbb0f774c249bedc98b403bb5cd1c1f (diff) | |
download | vaadin-framework-21f8f85da95b2a3e555c46bfaf595fe61824fb94.tar.gz vaadin-framework-21f8f85da95b2a3e555c46bfaf595fe61824fb94.zip |
Added BrowserInfo.isIE10() and test for IE10 user agent (#9217)
Change-Id: Ie81dcbfeaad30859db8b53ffec1f51024d832fd4
Diffstat (limited to 'client/tests')
-rw-r--r-- | client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java b/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java index b1d60f50b5..4ce03d885d 100644 --- a/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java +++ b/client/tests/src/com/vaadin/client/TestVBrowserDetailsUserAgentParser.java @@ -26,6 +26,8 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { private static final String IE9_BETA_IN_IE8_MODE_WINDOWS_7 = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"; private static final String IE9_BETA_WINDOWS_7 = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"; + private static final String IE10_WINDOWS_8 = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)"; + // "Version/" was added in 10.00 private static final String OPERA964_WINDOWS = "Opera/9.64(Windows NT 5.1; U; en) Presto/2.1.1"; private static final String OPERA1010_WINDOWS = "Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.10"; @@ -353,6 +355,15 @@ public class TestVBrowserDetailsUserAgentParser extends TestCase { assertWindows(bd); } + public void testIE10() { + VBrowserDetails bd = new VBrowserDetails(IE10_WINDOWS_8); + assertEngineVersion(bd, 6); + assertIE(bd); + assertBrowserMajorVersion(bd, 10); + assertBrowserMinorVersion(bd, 0); + assertWindows(bd); + } + /* * Helper methods below */ |