Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3512)

Unified Diff: content/test/data/media/webrtc_test_utilities.js

Issue 214663004: Add test for sending square resolution video on a PeerConnection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nit. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/data/media/peerconnection-call.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/media/webrtc_test_utilities.js
diff --git a/content/test/data/media/webrtc_test_utilities.js b/content/test/data/media/webrtc_test_utilities.js
index c56953fd2cbe64edf2e66019527d09dfc4183432..644a812565ee821798a7120819cff6aeba41d5d8 100644
--- a/content/test/data/media/webrtc_test_utilities.js
+++ b/content/test/data/media/webrtc_test_utilities.js
@@ -72,12 +72,22 @@ function detectVideo(videoElementName, predicate, callback) {
predicate(pixels, oldPixels)) {
console.log('Done looking at video in element ' + videoElementName);
clearInterval(waitVideo);
- callback();
+ callback(videoElement.videoWidth, videoElement.videoHeight);
}
oldPixels = pixels;
}, 200);
}
+function waitForVideoWithResolution(element, expected_width, expected_height) {
+ addExpectedEvent();
+ detectVideoPlaying(element,
+ function (width, height) {
+ assertEquals(expected_width, width);
+ assertEquals(expected_height, height);
+ eventOccured();
+ });
+}
+
function waitForVideo(videoElement) {
addExpectedEvent();
detectVideoPlaying(videoElement, function () { eventOccured(); });
« no previous file with comments | « content/test/data/media/peerconnection-call.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698