diff --git a/dom/media/tests/mochitest/test_peerConnection_simulcastOffer.html b/dom/media/tests/mochitest/test_peerConnection_simulcastOffer.html index 9ff8b91ee2ec..e9d5a48d74cf 100644 --- a/dom/media/tests/mochitest/test_peerConnection_simulcastOffer.html +++ b/dom/media/tests/mochitest/test_peerConnection_simulcastOffer.html @@ -86,8 +86,8 @@ ok(vremote, "Should have remote video element for pcRemote"); ok(vlocal.videoWidth > 0, "source width is positive"); ok(vlocal.videoHeight > 0, "source height is positive"); - is(vremote.videoWidth, vlocal.videoWidth / 2, "sink is same width as source"); - is(vremote.videoHeight, vlocal.videoHeight / 2, "sink is same height as source"); + is(vremote.videoWidth, vlocal.videoWidth, "sink is same width as source"); + is(vremote.videoHeight, vlocal.videoHeight, "sink is same height as source"); }, function PC_REMOTE_SET_RTP_SECOND_RID(test) { // Now, cause pcRemote to filter out everything but the second SSRC. @@ -97,6 +97,18 @@ function PC_REMOTE_WAIT_FOR_SECOND_MEDIA_FLOW(test) { return test.pcRemote.waitForMediaFlow(); }, + function PC_REMOTE_WAIT_FOR_FRAMES_2() { + var vremote = test.pcRemote.remoteMediaElements[0]; + ok(vremote, "Should have remote video element for pcRemote"); + return helper.waitForFrames(vremote); + }, + // For some reason, even though we're getting a 25x25 stream, sometimes + // the resolution isn't updated on the video element on the first frame. + function PC_REMOTE_WAIT_FOR_FRAMES_3() { + var vremote = test.pcRemote.remoteMediaElements[0]; + ok(vremote, "Should have remote video element for pcRemote"); + return helper.waitForFrames(vremote); + }, function PC_REMOTE_CHECK_SIZE_2() { var vlocal = test.pcLocal.localMediaElements[0]; var vremote = test.pcRemote.remoteMediaElements[0];