diff options
author | Henri Sara <henri.sara@itmill.com> | 2010-04-07 11:12:56 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2010-04-07 11:12:56 +0000 |
commit | f2f60e291453b3851a77a76510a8fd2501dec6d6 (patch) | |
tree | 5028c748b03099f327c06897147f8b87d39cb7ab /tests | |
parent | bfa25488983f39ec87719757a1a127bd2fe96fb8 (diff) | |
download | vaadin-framework-f2f60e291453b3851a77a76510a8fd2501dec6d6.tar.gz vaadin-framework-f2f60e291453b3851a77a76510a8fd2501dec6d6.zip |
#4491 browser version detection unit test: an additional case
svn changeset:12354/svn branch:6.3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/vaadin/tests/server/BrowserUserAgentParser.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/server/BrowserUserAgentParser.java b/tests/src/com/vaadin/tests/server/BrowserUserAgentParser.java index 5e89c7de33..1f851107e6 100644 --- a/tests/src/com/vaadin/tests/server/BrowserUserAgentParser.java +++ b/tests/src/com/vaadin/tests/server/BrowserUserAgentParser.java @@ -9,6 +9,7 @@ public class BrowserUserAgentParser extends TestCase { private static final String FIREFOX30 = "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6";
private static final String FIREFOX35 = "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8 (.NET CLR 3.5.30729) FirePHP/0.4";
private static final String FIREFOX36 = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)";
+ private static final String FIREFOX36B = "UAString mozilla/5.0 (macintosh; u; intel mac os x 10.6; en-us; rv:1.9.2) gecko/20100115 firefox/3.6";
private static final String IE6 = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)";
private static final String IE7 = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)";
@@ -89,6 +90,15 @@ public class BrowserUserAgentParser extends TestCase { assertEngineVersion(bd, 1.9f);
}
+ public void testFirefox36b() {
+ VBrowserDetails bd = new VBrowserDetails(FIREFOX36B);
+ assertGecko(bd);
+ assertFirefox(bd);
+ assertBrowserMajorVersion(bd, 3);
+ assertBrowserMinorVersion(bd, 6);
+ assertEngineVersion(bd, 1.9f);
+ }
+
public void testOpera964() {
VBrowserDetails bd = new VBrowserDetails(OPERA964);
assertPresto(bd);
|