Examples of BrowserSpecification


Examples of net.jsunit.model.BrowserSpecification

        assertFalse(configuration.hasPlatformType(PlatformType.LINUX));
    }

    public void testGetBrowserOfTypeAndVersion() throws Exception {
        ServerConfiguration configuration = new ServerConfiguration(new FullValidConfigurationSource());
        assertEquals(new Browser("iexplore.exe", 0), configuration.getBrowserMatching(new BrowserSpecification(PlatformType.WINDOWS, BrowserType.INTERNET_EXPLORER)));
        assertEquals(new Browser("opera.exe", 1), configuration.getBrowserMatching(new BrowserSpecification(PlatformType.WINDOWS, BrowserType.OPERA)));
        assertNull(configuration.getBrowserMatching(new BrowserSpecification(PlatformType.WINDOWS, BrowserType.FIREFOX)));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.