openvidu-test-e2e: viewport dimensions fix

pull/255/head
pabloFuente 2019-04-04 12:33:35 +02:00
parent c4aa9938aa
commit f8357588e0
1 changed files with 2 additions and 2 deletions

View File

@ -996,7 +996,7 @@ public class OpenViduTestAppE2eTest {
JSONObject obj = (JSONObject) new JSONParser().parse(widthAndHeight); JSONObject obj = (JSONObject) new JSONParser().parse(widthAndHeight);
expectedWidthHeight[0] = (long) obj.get("width"); expectedWidthHeight[0] = (long) obj.get("width");
expectedWidthHeight[1] = (long) obj.get("height") - 1; expectedWidthHeight[1] = (long) obj.get("height");
System.out.println("New viewport dimension: " + obj.toJSONString()); System.out.println("New viewport dimension: " + obj.toJSONString());
@ -2116,7 +2116,7 @@ public class OpenViduTestAppE2eTest {
String widthAndHeight = user.getEventManager().getDimensionOfViewport(); String widthAndHeight = user.getEventManager().getDimensionOfViewport();
JSONObject obj = (JSONObject) new JSONParser().parse(widthAndHeight); JSONObject obj = (JSONObject) new JSONParser().parse(widthAndHeight);
Assert.assertEquals( Assert.assertEquals(
"{\"width\":" + (long) obj.get("width") + ",\"height\":" + ((long) obj.get("height") - 1) + "}", "{\"width\":" + (long) obj.get("width") + ",\"height\":" + ((long) obj.get("height")) + "}",
pub.getVideoDimensions()); pub.getVideoDimensions());
Assert.assertEquals(new Integer(30), pub.getFrameRate()); Assert.assertEquals(new Integer(30), pub.getFrameRate());
Assert.assertEquals("SCREEN", pub.getTypeOfVideo()); Assert.assertEquals("SCREEN", pub.getTypeOfVideo());