openvidu-test-e2e: publisher height fixed

pull/375/head
pabloFuente 2019-09-16 12:36:17 +02:00
parent 743ea311a3
commit eb57d02188
1 changed files with 3 additions and 3 deletions

View File

@ -997,7 +997,7 @@ public class OpenViduTestAppE2eTest {
JSONObject obj = (JSONObject) new JSONParser().parse(widthAndHeight);
expectedWidthHeight[0] = (long) obj.get("width");
expectedWidthHeight[1] = (long) obj.get("height") + 49; // + 49 because of new "Sharing tab" infobar
expectedWidthHeight[1] = (long) obj.get("height") + 48; // + 48 because of new "Sharing tab" infobar
System.out.println("New viewport dimension: " + obj.toJSONString());
@ -2125,8 +2125,8 @@ public class OpenViduTestAppE2eTest {
String widthAndHeight = user.getEventManager().getDimensionOfViewport();
JSONObject obj = (JSONObject) new JSONParser().parse(widthAndHeight);
Assert.assertEquals(
"{\"width\":" + (long) obj.get("width") + ",\"height\":" + (((long) obj.get("height")) + 49) + "}",
pub.getVideoDimensions()); // + 49 because of new "Sharing tab" infobar
"{\"width\":" + (long) obj.get("width") + ",\"height\":" + (((long) obj.get("height")) + 48) + "}",
pub.getVideoDimensions()); // + 48 because of new "Sharing tab" infobar
Assert.assertEquals(new Integer(30), pub.getFrameRate());
Assert.assertEquals("SCREEN", pub.getTypeOfVideo());
Assert.assertTrue(pub.hasVideo());