mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Add firefox 20 support.
This commit is contained in:
parent
8915e7eddf
commit
96cb014a6e
@ -46,6 +46,7 @@ public class SupportedUserAgent implements Serializable {
|
||||
final int majorVersion = version != null ? Integer.parseInt(version.getMajorVersion()) : -1;
|
||||
|
||||
boolean result = browser == Browser.FIREFOX && majorVersion >= 10;
|
||||
result = result || browser == Browser.FIREFOX2 && majorVersion >= 17;
|
||||
result = result || browser == Browser.IE8 || browser == Browser.IE9;
|
||||
result = result || browser == Browser.IE && majorVersion >= 8;
|
||||
result = result || browser == Browser.OPERA10 && majorVersion >= 11;
|
||||
|
@ -16,13 +16,13 @@ import org.testng.annotations.Test;
|
||||
import java.io.*;
|
||||
|
||||
@Test
|
||||
public class FreemindImportExportTest {
|
||||
public class FreeMindImportExportTest {
|
||||
private static final String DATA_DIR_PATH = "src/test/resources/data/freemind/";
|
||||
private static final String UTF_8 = "UTF-8";
|
||||
final private Importer importer;
|
||||
final private FreemindExporter exporter;
|
||||
|
||||
public FreemindImportExportTest() throws ImporterException {
|
||||
public FreeMindImportExportTest() throws ImporterException {
|
||||
ImporterFactory exporterFactory = ImporterFactory.getInstance();
|
||||
importer = exporterFactory.getImporter(ImportFormat.FREEMIND);
|
||||
exporter = new FreemindExporter();
|
||||
|
@ -49,6 +49,8 @@ public class UserAgentTest {
|
||||
final SupportedUserAgent mediapartners = SupportedUserAgent.create("Mediapartners-Google/2.1");
|
||||
Assert.assertEquals(mediapartners.isBrowserSupported(), true);
|
||||
|
||||
final SupportedUserAgent firefox20 = SupportedUserAgent.create("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20121215 Firefox/20.0 AppEngine-Google; (+http://code.google.com/appengine; appid: slubuntuk)");
|
||||
Assert.assertEquals(firefox20.isBrowserSupported(), true);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user