mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: viewport dimensions fix
parent
c4aa9938aa
commit
f8357588e0
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue