コード例 #1
0
 private void assertLinux(VBrowserDetails browserDetails) {
   assertTrue(browserDetails.isLinux());
   assertFalse(browserDetails.isWindows());
   assertFalse(browserDetails.isMacOSX());
   assertFalse(browserDetails.isIOS());
   assertFalse(browserDetails.isAndroid());
 }
コード例 #2
0
 private void assertWindows(VBrowserDetails browserDetails, boolean isWindowsPhone) {
   assertFalse(browserDetails.isLinux());
   assertTrue(browserDetails.isWindows());
   assertFalse(browserDetails.isMacOSX());
   assertFalse(browserDetails.isIOS());
   assertFalse(browserDetails.isAndroid());
   Assert.assertEquals(isWindowsPhone, browserDetails.isWindowsPhone());
 }
コード例 #3
0
  private void assertIOS(VBrowserDetails browserDetails, int majorVersion, int minorVersion) {
    assertFalse(browserDetails.isLinux());
    assertFalse(browserDetails.isWindows());
    assertFalse(browserDetails.isMacOSX());
    assertTrue(browserDetails.isIOS());
    assertFalse(browserDetails.isAndroid());

    assertOSMajorVersion(browserDetails, majorVersion);
    assertOSMinorVersion(browserDetails, minorVersion);
  }