private void assertLinux(VBrowserDetails browserDetails) {
   assertTrue(browserDetails.isLinux());
   assertFalse(browserDetails.isWindows());
   assertFalse(browserDetails.isMacOSX());
   assertFalse(browserDetails.isIOS());
   assertFalse(browserDetails.isAndroid());
 }
 private void assertWebKit(VBrowserDetails browserDetails) {
   // Engine
   assertFalse(browserDetails.isGecko());
   assertTrue(browserDetails.isWebKit());
   assertFalse(browserDetails.isPresto());
   assertFalse(browserDetails.isTrident());
 }
  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);
  }
  public void testIE8CompatibilityMode() {
    VBrowserDetails bd = new VBrowserDetails(IE8_IN_IE7_MODE_WINDOWS);
    bd.setIEMode(7);

    assertTrident(bd);
    assertEngineVersion(bd, 4);
    assertIE(bd);
    assertBrowserMajorVersion(bd, 7);
    assertBrowserMinorVersion(bd, 0);

    assertWindows(bd);
  }
 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());
 }
 private void assertEdge(VBrowserDetails browserDetails) {
   // Browser
   assertFalse(browserDetails.isFirefox());
   assertFalse(browserDetails.isChrome());
   assertFalse(browserDetails.isIE());
   assertFalse(browserDetails.isOpera());
   assertFalse(browserDetails.isSafari());
   assertTrue(browserDetails.isEdge());
 }
 private void assertIPad(VBrowserDetails browserDetails) {
   assertFalse(browserDetails.isIPhone());
   assertTrue(browserDetails.isIPad());
 }
 private void assertBrowserMinorVersion(VBrowserDetails browserDetails, int version) {
   assertEquals(version, browserDetails.getBrowserMinorVersion());
 }
 private void assertEngineVersion(VBrowserDetails browserDetails, float version) {
   assertEquals(version, browserDetails.getBrowserEngineVersion());
 }
 private void assertOSMinorVersion(VBrowserDetails bd, int i) {
   assertEquals(i, bd.getOperatingSystemMinorVersion());
 }